MSC 5.0 Bug???

Kumar_Swaminathan.SVSantaClara at Xerox.COM Kumar_Swaminathan.SVSantaClara at Xerox.COM
Fri Feb 12 09:31:09 AEST 1988


In resp. to <983 at maccs.UUCP> regarding a (possible)  bug in fwrite() of
msc:

Whether  or not  the CR/LF combo is interpreted as  '/n' depends on how one
opens the file with fopen.  If the "type" arg. in fopen  contains a 't' (for
text files) then such interpretation occurs. To avoid that use 'b' (for binary).
e.g:

fopen("File.name", "rb");         /* open  the file for read in binary mode and
*/
			                /* and  don't mess with CR/LF combos */



More information about the Comp.lang.c mailing list