3 ms·
I'd rather put the final nul at d+l-1 than at d+l, so that l can be the size of d, not "one more than the size of d": strncpyz(buf,src,sizeof buf);
by teo_zero 3y ago
I'd rather put the final nul at d+l-1 than at d+l, so that l can be the size of d, not "one more than the size of d":
strncpyz(buf,src,sizeof buf);