www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/03/12:46:47

Xref: news-dnh.mv.net comp.os.msdos.djgpp:3016
Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!plug.news.pipex.net!pipex!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!btnet!newsfeed.internetmci.com!chi-news.cic.net!simtel!swidir.switch.ch!scsing.switch.ch!news.belwue.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!news.urz.uni-heidelberg.de!usenet
From: mlisowsk AT aixterm1 DOT urz DOT uni-heidelberg DOT de (Martin Lisowski)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: CR/LF pairs... NO NO NO!
Date: 2 Nov 1995 09:53:09 GMT
Organization: University of Heidelberg, Germany
Lines: 20
Distribution: world
References: <47946c$9al AT woodstock DOT socs DOT uts DOT EDU DOT AU>
Reply-To: mlisowsk AT aixterm1 DOT urz DOT uni-heidelberg DOT de
Nntp-Posting-Host: aixterm8.urz.uni-heidelberg.de
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

In article 9al AT woodstock DOT socs DOT uts DOT EDU DOT AU, jkmarsha AT socs DOT uts DOT edu DOT au (Justen Keven Marshall) writes:
>
>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.
>  
[...]
>Justen Marshall.
>

Try opening your file in binary mode (instead of text mode).

Martin




- Raw text -


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