8 ms·
The author isn't saying that there's anything wrong with strlen; he's just saying that it's not trivially optimizable like it might seem to be. Also, std::stri
by rcfox 13y ago
The author isn't saying that there's anything wrong with strlen; he's just saying that it's not trivially optimizable like it might seem to be.
Also, std::string is C++, not C.
- goldenkey 13y agoSorry, that was a slipup. What I meant is a string object library. std::string would be fine in the case of C++ or bstring for C http://bstring.sourceforge.net/ http://bstring.sourceforge.net/