| delorie.com/archives/browse.cgi | search |
| From: | George Lugovoy <glugovoy AT uic DOT rnd DOT runnet DOT ru> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: C compiler inserts 0x0d before 0x0a? |
| Date: | Wed, 26 Jul 2000 08:15:57 +0000 |
| Organization: | University Internet Class |
| Lines: | 8 |
| Message-ID: | <397E9E3D.41C67EA6@uic.rnd.runnet.ru> |
| References: | <397BFC7C DOT 111C0896 AT ethernet DOT com> |
| NNTP-Posting-Host: | bell.uic.rnd.runnet.ru |
| Mime-Version: | 1.0 |
| X-Trace: | oberon.rnd.runnet.ru 964599368 9547 195.208.252.39 (26 Jul 2000 08:16:08 GMT) |
| X-Complaints-To: | usenet AT oberon DOT rnd DOT runnet DOT ru |
| NNTP-Posting-Date: | 26 Jul 2000 08:16:08 GMT |
| X-Mailer: | Mozilla 3.04Gold (X11; I; FreeBSD 4.0-STABLE i386) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
> if ((out = open(myfile, O_CREAT | O_WRONLY )) < 0 ) {
> perror(myfile);
> exit(1);
> }
I think, you need to open that file in a binary mode.
- George
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |