tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Adding memset_s function



On Fri, 24 Feb 2012, Joerg Sonnenberger wrote:
On Fri, Feb 24, 2012 at 12:06:01PM +0200, Alan Barrett wrote:
ISO/IEC 9899:2011 ("C 11") defines a memset_s function for that.
It's a lot like memset(3), but it takes an extra argument, does some
sanity checks on the arguments, and it's guaranteed not to be
optimised away by the compiler.

Frankly, I think we should first discuss whether we want to implement
the *_s crap first or not.

Some of the *_s functions seem sensible, and some don't. I do not propose to add them all.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index