4 ms·
Yes -- and that has turned out to be a bad design decision. It's somewhat convenient to use methods like strcat() to build up strings, but it also leads to very
by iainmerrick 9y ago
Yes -- and that has turned out to be a bad design decision. It's somewhat convenient to use methods like strcat() to build up strings, but it also leads to very insecure code.
I think the inclusion of strdup() shows that it was a mistake to make C strings completely allocator-agnostic.