What are your experiences from using C string libraries (bstring and friends)? I'm starting a project that I'm going to write in ANSI C and that is quite heavy on string processing, and having support for actual strings (as opposed to null-terminated arrays) would be a real time saver. And no, I'm not going to use glib or any other `let's make C something else entirely' solution.
Name:
Anonymous2010-02-20 19:39
>>16
It's not just annoying! Just read the manpage, and you'll find out it sucks monkey balls:
BUGS
Be cautious when using these functions. If you do use them, note that:
* These functions modify their first argument.
* These functions cannot be used on constant strings.
* The identity of the delimiting character is lost.
* The strtok() function uses a static buffer while parsing, so it's not
thread safe. Use strtok_r() if this matters to you.