3 ms·
The author of the article got this wrong. The return value is the number of characters it tried to write so it's easy enough to compare with the buffer size to
by zik 12y ago
The author of the article got this wrong. The return value is the number of characters it tried to write so it's easy enough to compare with the buffer size to see if truncation occurred.