Path: utzoo!mnetor!uunet!husc6!mailrus!nrl-cmf!ames!umd5!cvl!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: comp.lang.c Subject: Re: Binary I/O on stdin/stdout? Message-ID: <8036@elsie.UUCP> Date: 28 Mar 88 16:44:45 GMT References: <302@goofy.megatest.UUCP> <225800017@uxe.cso.uiuc.edu> <7565@brl-smoke.ARPA> Organization: NIH-LEC, Bethesda, MD Lines: 11 > > There seems to be *no way* to "reopen" these streams as binary. > > There was a proposal for freopen((char*)0,mode,stream) to effect > a change of mode on an open stream, but several implementors > thought that switching modes in midstream could be difficult to > support on some systems. Couldn't freopen simply return ((FILE *) 0) in such cases, much as localtime is allowed to return -1 if local time can't be determined? -- olson@ncifcrf.gov "...that lucky ol' Sun ain't got nothin' to do..."