4 ms·
Except to properly implement that you'll need to deal with grapheme clusters.
by gdprrrr 3y ago
Except to properly implement that you'll need to deal with grapheme clusters.
- tialaramex 3y agoI expect the parent is thinking of why strncpy is the way it is, and the people who built that were glad if their terminal had both uppercase and lowercase letters, they didn't have Unicode, or grapheme clusters, their concern wasn't "will this string fit in this many pixels on my 24" flat panel?" but "Will this string fit in these 10 bytes where the filename needs to go in the directory data structure of the filesystem?".