News for hackers. Stuff that matters.
Re:Valve's OpenGL debugger open-sourced by clarry on Thursday March 13, 2014 @10:52AM (#7392145)
Is there a system on which vsnprintf doesn't NUL-terminate the string after a successful non-zero return?
Re:Valve's OpenGL debugger open-sourced by ramchip on Thursday March 13, 2014 @11:09AM (#7392280)
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

Re:Valve's OpenGL debugger open-sourced by clarry on Thursday March 13, 2014 @11:31AM (#7392440)
Incredible.. thanks.

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