R
Rahul
Hi Everyone,
I actually had a program which prints the output to stdout.
while(1)
{
printf("\r sending %d",send_count);
}
Because, of the carriage return escape sequence, the actual output
comes in a single line.
I tried to redirect the output to a file using fprintf(). But for
some reason, the carriage return
doesn't work and the output falls on the next line :-(. I'm not sure
as to why \r doesn't work when
\n works. Is there any work around?
Thanks in advance ! ! !
I actually had a program which prints the output to stdout.
while(1)
{
printf("\r sending %d",send_count);
}
Because, of the carriage return escape sequence, the actual output
comes in a single line.
I tried to redirect the output to a file using fprintf(). But for
some reason, the carriage return
doesn't work and the output falls on the next line :-(. I'm not sure
as to why \r doesn't work when
\n works. Is there any work around?
Thanks in advance ! ! !