Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Incredible.. thanks.

For longer strings, it also seems to return -1 instead of doing what the standard says.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: