delorie.com/archives/browse.cgi | search |
Date: | Fri, 21 Jul 1995 23:50:25 -0400 |
From: | dj (DJ Delorie) |
To: | dpsm AT lubrizol DOT com |
Cc: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Subject: | Re: Text/Binary mode of stdin,stdout,stderr |
> #ifdef MSDOS > /* We do all file input/output as binary files. When we need to translate > newlines, we do that manually. */ > _fmode = O_BINARY; > (stdin)->_flag &= ~_IOTEXT; > (stdout)->_flag &= ~_IOTEXT; > (stderr)->_flag &= ~_IOTEXT; > #endif /* MSDOS */ One of the things I need to make sure works right, is that when you setmode(1,O_BINARY), it changes stdout also, etc. I'm not sure it works quite right now.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |