... and end up with silent truncation unless you happen to always remember to use only C library functions with explicit length arguments (and which do not assume NUL-terminated strings).
Look, I get that there is a place for C, but string manipulation is absurdly bad and error-prone.
Look, I get that there is a place for C, but string manipulation is absurdly bad and error-prone.