3 ms·
> it prevents these functions from being used with input that might not be null-terminated Those are not valid C-strings! String functions are(have) "undefined
by ben_bai 3y ago
> it prevents these functions from being used with input that might not be null-terminated
Those are not valid C-strings! String functions are(have) "undefined behavior" for non string inputs!
- Denvercoder9 3y agoThat's true, but in practice you sometimes encounter such strings and it's nice if you can use the regular string functions with them, instead of having to special-code something.