4 ms·
Is C & C++ really worse than Java at strings? Don't think so but I'm not sure. Can't imagine they're far apart.
by slake 14y ago
Is C & C++ really worse than Java at strings? Don't think so but I'm not sure. Can't imagine they're far apart.
- mschuster91 14y agoC definitely - strlen() not binary safe, you have to deal with malloc()/free()/strdup() etc. by hand instead of letting a highly optimized GC do the job...
- dmm 14y agoOr you could just strdup and malloc a bunch of strings and let the kernel clean it up when the cgi process exits. ;)
- wmil 14y agoYes. C & C++ strings are so bad that most large libraries ship with their own string functions.