stopping new line with asctime
Hi all,
I'm using asctime function to print the time to a file, however it always puts a new line with it, for example if I do
fprintf(pFile,"%s",asctime ( tm ));
fprintf(pFile,"hello world");
it writes
Fri Jan 28 18:11:38 2011
hello world
rather than
Fri Jan 28 18:11:38 2011 hello world
it's as if asctime adds \n to the end.
Is there a way round this? Thanks in advance
|