3 ms·
"man bcopy" on BSD: 'If len is zero, no bytes are copied.' Seems reasonable.
by IcePic 2y ago
"man bcopy" on BSD:
'If len is zero, no bytes are copied.'
Seems reasonable.
- crest 2y agoAs I understand that doesn't imply that it's not undefined to pass NULL pointers. While not what most users expect/want it's possible to this is just a wrapper around an memcpy() which will only be correct to call with valid destination and source pointers even if the length is zero.