3 ms·
Of all the problems with C strings, the one mentioned in the article (inefficient strcat() function) is really small. I think unicode support would be much mor
by ktRolster 11y ago
Of all the problems with C strings, the one mentioned in the article (inefficient strcat() function) is really small.
I think unicode support would be much more important, but not everyone agrees (for example, on embedded devices unicode support can be dead-weight). And adding to C without consensus leads to lousy decisions.
- reacweb 11y agoI have already noticed some performance issue with strncpy (and big destination buffers) vs strlcpy. The two functions introduced in the article have the good complexity and seem to be more handy than usual api.
- ktRolster 11y agoIf you need to copy big strings, memcpy is worth checking out, too.