2 ms·
If you're not worried about writing in a language which is widely supported, just use memset_s and tell people to find a C11 compiler.
by cperciva 12y ago
If you're not worried about writing in a language which is widely supported, just use memset_s and tell people to find a C11 compiler.
- JoshTriplett 12y agoOr have your build system add memset_s.c to their compile on systems that don't have it.
- deleted 12y ago[deleted]
- tedunangst 12y agoA C11-unaware compiler will not be guaranteed to provide the always zero semantics, any more than your own secure_memzero could be optimized away.
- deleted 12y ago[deleted]
- stephencanon 12y agomemset_s is an optional feature of C11. Implementations are not required to provide it unless they define __STDC_LIB_EXT1__.