Old Wolf
2008-05-14 00:24:58 UTC
In the documentation with BDS2006, snprintf is specified as
not 0-terminating the string, if it matches or exceeds the
buffer size. (I tested this too, and the function does indeed
behave this way).
This is at odds with the C standard, which defines snprintf
as always terminating the buffer.
Is this going to be fixed at some point, or do I need to put
hacks in all the standard code that I want to compile with
Borland?
not 0-terminating the string, if it matches or exceeds the
buffer size. (I tested this too, and the function does indeed
behave this way).
This is at odds with the C standard, which defines snprintf
as always terminating the buffer.
Is this going to be fixed at some point, or do I need to put
hacks in all the standard code that I want to compile with
Borland?