Mail Archives: djgpp/1995/11/02/08:31:27

Xref: comp.os.msdos.djgpp:2992
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
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

  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.

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019