Mail Archives: djgpp/1998/01/19/23:18:47
Bjoern Appel 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 ;-) ?
Yes /r (for return maybe?) so if you want to print a list with 'cprintf'
that goes straight down the side, you need something like:
#include <conio.h>
int main /*Just to be follow ansi :>)*/
{
/*Your code here*/
cprintf("foo\r\n")
exit(0)
}
- Raw text -