S
Seong-Kook Shin
C FAQ Q 13.2 says that sprintf() is guaranteed to work only for n <= 509:
sprintf(dest, "%.*s", n, source);
Does 509 appear in any C standard? If not, where it came from?
I looked over C99 (ISO/IEC 9899:1999) but didn't find yet.
If that limitation is old standard (perhaps ANSI?), does it limit the total
length of the string that sprintf() would print, or just for one '%s'?
I heard that on some old system does have a limitation on the total output
length of printf() family. If this limitation is not covered by (any) C
standard,
where can I get the information? (perhaps POSIX?)
Thanx.
sprintf(dest, "%.*s", n, source);
Does 509 appear in any C standard? If not, where it came from?
I looked over C99 (ISO/IEC 9899:1999) but didn't find yet.
If that limitation is old standard (perhaps ANSI?), does it limit the total
length of the string that sprintf() would print, or just for one '%s'?
I heard that on some old system does have a limitation on the total output
length of printf() family. If this limitation is not covered by (any) C
standard,
where can I get the information? (perhaps POSIX?)
Thanx.