4 ms·
Is there a system on which vsnprintf doesn't NUL-terminate the string after a successful non-zero return?
by clarry 13y ago
Is there a system on which vsnprintf doesn't NUL-terminate the string after a successful non-zero return?
- ramchip 13y agoVC++, if the number of characters to write is exactly equal to count, will return count without inserting a null: http://msdn.microsoft.com/en-us/library/1kt27hek.aspx http://msdn.microsoft.com/en-us/library/1kt27hek.aspx
- clarry 13y agoIncredible.. thanks. For longer strings, it also seems to return -1 instead of doing what the standard says.