Xref: news-dnh.mv.net comp.os.msdos.djgpp:2992 Path: news-dnh.mv.net!mv!news.sprintlink.net!cs.utexas.edu!academ!bcm.tmc.edu!news.msfc.nasa.gov!newsfeed.internetmci.com!chi-news.cic.net!uwm.edu!msunews!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!socs.uts.edu.au!jkmarsha From: jkmarsha AT socs DOT uts DOT edu DOT au (Justen Keven Marshall) Newsgroups: comp.os.msdos.djgpp Subject: CR/LF pairs... NO NO NO! Date: 2 Nov 1995 00:42:52 GMT Organization: School of Computing Sciences, UTS Lines: 17 Nntp-Posting-Host: charlie.socs.uts.edu.au To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp Hi I am at my wits end trying to print a line-feed without a carriage return. (Or the other way around.) What happens is that when I try to print char(10) in a file, with printf redirected, fprintf, cout, putchar, fputchar, or whatever, it puts BOTH not just one. I need only one, since I want to put the ascii char 10 in the file. I'm using MS-Dos 7.0 (Win95) but it does it with 6.22 as well. Is it the fault of DJGPP, GO32, or something I'm doing? I tried the same thing in Turbo Pascal (the only other language I have) and it didn't do it, so I suspect it is something about C or DJ itself. Thanks for your help... Justen Marshall.