3 ms·
> How do I correctly truncate the string? Refuse to accept a string that is overlong, and require an interactive user (hopefully one literate in the language)
by toast0 7y ago
> How do I correctly truncate the string?
Refuse to accept a string that is overlong, and require an interactive user (hopefully one literate in the language) to truncate it for you. In a non-interactive context, you can't.