[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [MiNT] MiNT lib 55



> From: owner-mint@fishpool.com [mailto:owner-mint@fishpool.com]On Behalf
> Of Guido Flohr
> Sent: Friday, May 12, 2000 11:59 PM
> To: MiNT mailing list
> Subject: Re: [MiNT] MiNT lib 55
> ...
> To answer your question: The old code
>
> 	file->_flags |= _IOBIN;
> 	file->_flags &= ~_IOBIN;
>
> now translates to
>
> 	file->__mode.__binary = 1;
> 	file->__mode.__binary = 0;
>
> For alternative methods see <bits/stdio_mint.h>.

Isn't the proper way to do get a binary stream out of one of the preopened
streams fdopen() anyway? This is POSIX, portable, and has been around in
MiNT-Lib for a long time (I just checked an article I wrote in 1994 .-).