23 Oct
2007
23 Oct
'07
6:06 p.m.
On Thu, Oct 18, 2007 at 11:12:23AM +0200, Michael Stefaniuc wrote:
- fprintf(file, varname); + fprintf(file, "%s", varname);
fputs() would be a faster alternative to that. Though i doubt that matters in this case.
FWIW gcc tends to convert fprintf(file, "%s", arg) into fputs(arg, file). Discovered on a semi-embedded system which had fprintf, but not fputs :-) David -- David Laight: david(a)l8s.co.uk