3 ms·
C2X will be adding memccpy() (note two c's in the middle, not memcpy!). Overview and justification at https://developers.redhat.com/blog/2019/08/12/efficient-st
by jabl 5y ago
C2X will be adding memccpy() (note two c's in the middle, not memcpy!). Overview and justification at https://developers.redhat.com/blog/2019/08/12/efficient-string-copying-and-concatenation-in-c https://developers.redhat.com/blog/2019/08/12/efficient-stri...
- AlexanderDhoore 5y agoGreat naming choice. Won't be confusing at all.
- 1500100900 5y agoIt's been available in FreeBSD since mid 90s and yet nobody ever uses it, not even FreeBSD developers. I like memccpy because it's easy to check for all possible errors known to me, but everybody else seems to prefer strlcpy because it came from THE security-oriented BSD.