Mail Archives: djgpp/2007/03/07/11:19:45
-------------------------------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> </DIV>
<DIV>on this computer in my C-programs </DIV>
<DIV>printf("%c",10);</DIV>
<DIV>prints ascii 13 and ascii 10.</DIV>
<DIV> </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> </DIV>
<DIV>But that means, the old programs no longer work correctly ?!?</DIV>
<DIV> </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 -