Hacker News new | ask | show | jobs
by david2ndaccount 681 days ago
Only msvc provides strcpy_s and they don’t conform to the standard. Other libcs don’t provide it. Ignore everything from Annex K and write your own wrappers around memcpy. You should always know the size of your buffers.
1 comments

Ah that sucks. Guess C is just stuck like this for the long term. Writing your own functions is still the best advice :'(
on the plus side, c is good at writing your own functions