3 ms·
Also Microsoft's strncpy_s has been around forever.
by IChooseYou 8y ago
Also Microsoft's strncpy_s has been around forever.
- brucedawson 8y agoIt's too bad strncpy_s is so unwieldy to use. Having to pass the TRUNCATE flag is frustrating. I really want a two argument (dst, src) function that guarantees null termination.
- rurban 8y agoBut Microsoft's strncpy_s is unsafe. My safeclib also had the unsafe versions behind the non-default ./configure --enable-unsafe switch. But this year I decided to make them safe instead. In this case the spec is broken.