From: Greg C. <gch...@sb...> - 2009-06-12 19:49:40
|
On 2009-06-12 15:55Z, Thomas Steinbach wrote: > > I'm searching for libraries or something like "wrapper" code for > the "*_s" AND the "w*_s".non ansi standard functions in string.h, stdio, Discussed a while back in this thread: http://search.gmane.org/?query=localtime_s&group=gmane.comp.gnu.mingw.* Personally, I dislike this "security" idea. As you've found, it's not portable. And it's easy enough to pass incorrect values in the extra arguments--see: http://forums.thedailywtf.com/forums/t/8208.aspx#154306 so code that uses these functions isn't necessarily safe. Illusory safety considered harmful: http://en.wikipedia.org/wiki/Strlcpy#Reception If you want a C-like language that's safer (and standard), use C++, where (e.g.) string concatenation is just 's+t'. (And use libstdc++'s "debug" mode.) |