delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/03/07/11:19:45

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Sterten AT aol DOT com
Message-ID: <c29.f754a8b.33203d1b@aol.com>
Date: Wed, 7 Mar 2007 11:06:51 EST
Subject: line feed
To: djgpp AT delorie DOT com
MIME-Version: 1.0
X-Mailer: 9.0 SE for Windows sub 5009
X-Spam-Flag: NO
Reply-To: djgpp AT delorie DOT com

-------------------------------1173283611
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable


on this computer in my C-programs=20
printf("%c",10);
prints ascii 13 and ascii 10.
=20
While on another computer it only printed acii 10
and I used print("%c%c",13,10) for the above purpose.
=20
But that means, the old programs no longer work correctly ?!?
=20
Is it possible to check the system and then branch to=20
whatever suitable to print , so the programs work universally  ?
  =20

-------------------------------1173283611
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3DISO-8859-1">
<META content=3D"MSHTML 6.00.5730.11" name=3DGENERATOR></HEAD>
<BODY id=3Drole_body style=3D"FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY:=20=
Arial"=20
bottomMargin=3D7 leftMargin=3D7 topMargin=3D7 rightMargin=3D7><FONT id=3Drol=
e_document=20
face=3DArial color=3D#000000 size=3D2>
<DIV>&nbsp;</DIV>
<DIV>on this computer in my C-programs </DIV>
<DIV>printf("%c",10);</DIV>
<DIV>prints ascii 13 and ascii 10.</DIV>
<DIV>&nbsp;</DIV>
<DIV>While on another computer it only printed acii 10</DIV>
<DIV>and I used print("%c%c",13,10) for the above purpose.</DIV>
<DIV>&nbsp;</DIV>
<DIV>But that means, the old programs no longer work correctly ?!?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Is it possible to check the system and then branch to </DIV>
<DIV>whatever suitable to print , so the programs work universally=20
?</DIV></FONT>   </BODY></HTML>

-------------------------------1173283611--

- Raw text -


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