▲ | king_geedorah 7 days ago | ||||||||||||||||||||||
> If the output was truncated due to this limit, then the return value is the number of characters (excluding the terminating null byte) which would have been written to the final string if enough space had been available. The initial call with size 0 tells you the necessary length of the buffer for the string you want, but does not include the null byte. | |||||||||||||||||||||||
▲ | orbisvicis 5 days ago | parent [-] | ||||||||||||||||||||||
For clarity, all snprintf calls "return the number of bytes that would be written to s had n been sufficiently large excluding the terminating null byte" [1]. | |||||||||||||||||||||||
|