www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/03/21:15:42

Xref: news-dnh.mv.net comp.os.msdos.djgpp:3034
Path: news-dnh.mv.net!mv!news.sprintlink.net!mhv.net!news.westnet.com!news-out.internetmci.com!internetMCI!newsfeed.internetmci.com!chi-news.cic.net!simtel!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: Re: CR/LF pairs... NO NO NO!
Date: 3 Nov 1995 00:25:22 GMT
Organization: School of Computing Sciences, UTS
Lines: 26
References: <47946c$9al AT woodstock DOT socs DOT uts DOT EDU DOT AU>
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

Justen Keven Marshall (jkmarsha AT socs DOT uts DOT edu DOT au) wrote:

: 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.


Hi!
  I just wanted to say thanks to all those people who have
  responded to my question. I have found that you were all
  right on the money, I was opening the file in text mode,
  not binary. That solved the problem! Thanks again.

Justen Marshall.

- Raw text -


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