3 ms·
strnlen may be surprising the first time you see it not null terminate, sure. But if you use the n version of all the string functions (which you should anyway)
by dahfizz 6y ago
strnlen may be surprising the first time you see it not null terminate, sure. But if you use the n version of all the string functions (which you should anyway) then it's safe.