3 ms·
The fact that strncpy zeros the buffer may make it slower.
by nitrogen 11y ago
The fact that strncpy zeros the buffer may make it slower.
- jjnoakes 11y agoSure, by a couple of cycles. Unless your size is huge. In which case, perhaps you should try to avoid copying strings in the first place.