4 ms·
Can't you just strncpy sizeof(dest) if you're going to zero-out the last byte of the buffer unconditionally?
by masklinn 8y ago
Can't you just strncpy sizeof(dest) if you're going to zero-out the last byte of the buffer unconditionally?
- deleted 8y ago[deleted]
- loeg 8y agoYeah. You've "wasted" an extra byte copy, but that is usually so cheap as to be virtually free.