2 ms·
Also, here's the source from musl (somewhat similar to what we have) https://github.com/ifduyue/musl/blob/79f653c6bc2881dd6855299c908a442f56cb7c2b/src/string/s
by apjana 7y ago
Also, here's the source from musl (somewhat similar to what we have)
https://github.com/ifduyue/musl/blob/79f653c6bc2881dd6855299c908a442f56cb7c2b/src/string/stpncpy.c https://github.com/ifduyue/musl/blob/79f653c6bc2881dd6855299...
- saagarjha 7y agoYeah, musl just vectorizes mildly using when certain GNU C extensions are available. Presumably Rich didn’t want to write out another version in assembly. (It really is a shame that strncpy returns dest.)