Mail Archives: djgpp/1998/01/15/19:15:48
On Thu, 15 Jan 1998 20:22:28 GMT in comp.os.msdos.djgpp Bjoern Appel
<Bjoern DOT Appel AT frankfurt DOT netsurf DOT de> wrote:
: Now it seems that cprintf() interprets a "\n" as a newline and
: nothing more. The printf()-funktion interprets it as a newline and
: carrige return. The above program produces staircases when I run it
: under DOS. Is there any trick like a escape-sequence for carrige
: return (This time I looked in the FAQ first; nothing found ;-) ?
Use '\r' for a carriage return:
cprintf ("First line\r\nSecond line\r\n");
--
Regards,
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -