It\'s not possible to do something like fputs(4, fptOut); because fputs doesn\'t like integers. How can I work around this?
fputs(4, fptOut);
Doing fputs(\"4\", fpt
fputs(\"4\", fpt
I know 6 years too late but if you really wanted to use fputs
fputs
char buf[12], *p = buf + 11; *p = 0; for (; n; n /= 10) *--p = n % 10 + '0'; fputs(p, fptOut);
Should also note this is for educational purpose, you should stick with fprintf.
fprintf