Binary I/O on stdin/stdout?

Arthur David Olson ado at elsie.UUCP
Tue Mar 29 02:44:45 AEST 1988


> > 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 at ncifcrf.gov	"...that lucky ol' Sun ain't got nothin' to do..."



More information about the Comp.lang.c mailing list