3 ms·
> Bounds checking interfaces in C99 ... are an optional part of C standard library. C11 Annex K. http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1967.htm htt
by vardump 10y ago
> Bounds checking interfaces in C99
... are an optional part of C standard library. C11 Annex K.
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1967.htm http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1967.htm
So just use a library for those and you get support in every compiler!
> MSVC: Nope, why? Performance concerns
MSVC runtime library does support an early version of that. Has supported for over 10 years. They contributed it to the standard, I think.
Example, sprintf_s, present in MSVC2005: https://msdn.microsoft.com/en-us/library/ce3zzk1k(v=vs.80).aspx https://msdn.microsoft.com/en-us/library/ce3zzk1k(v=vs.80).a...
Anything else?