Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Primos portability report Message-ID: <7291@brl-smoke.ARPA> Date: 19 Feb 88 11:27:47 GMT References: <24599@cca.CCA.COM> <7048@oberon.USC.EDU> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 In article <7048@oberon.USC.EDU> blarson@skat.usc.edu (Bob Larson) writes: >>FILE *ifptr = stdin; >I've run into this problem before. std(in,out) cannout be assigned to >FILE * variables other than in main. A more fundamental problem is that in some implementations stdin etc. are not constant-expression macros, but more general rvalue macros, so they cannot be used as static initializers.