character limit for printf, sprintf, fprintf
Mon, 07/27/2020 - 08:22 am
Am I correct that each string argument for fprintf (and printf, sprintf) is limited to 2399 bytes?
I tried to search the manual and couldn't find any reference to this. I tracked down an "printf error" to fprintf and a long string.
This seems to work:
int i, chars, imax
fprintf refnum, "%s", s[2000*i, 2000*i+1999]
Is that a reasonable way to append a string of unknown length to a text file?