Y
Hacker News
new
|
ask
|
show
|
jobs
by
IChooseYou
2852 days ago
Also Microsoft's strncpy_s has been around forever.
2 comments
rurban
2850 days ago
But 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.
link
brucedawson
2852 days ago
It'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.
link
But this year I decided to make them safe instead. In this case the spec is broken.