4 ms·
VC++, 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/1kt27
by ramchip 13y ago
VC++, 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.