|
From: <loo...@ca...> - 2001-11-27 19:09:57
|
hello every body
can somone help me please to define a function in a
C-program that allaow the cursor to return to a new line in
a file?
what I've done is that :
#define NL(n) { int l; for(l=3D0; l<(n); l++) fputc(cfp,"\n");
}
where cfp design the name of the file and NL(n) will write
"n" new lines in cfp.
The problem is that it print ^A and not a new line !!!
I've changed fputc by fputs and than by fprintf but the
problem still exist
the compiler that I've used is cc and the machine is an IBM
RS6000
Thanks
______________________________________________________
Bo=EEte aux lettres - Caramail - http://www.caramail.com
|