Hmm. I think it's a good argument. I'll think on it for a day or 2.
I went to some effort to explain the difference between str_t and strbuf_t in the readme, but if someone want's to modify some code using this library one day, it's unlikely they will have seen the readme.
In 10 years I'll probably have forgotten how this whole thing works, and that someone may be me.
Thank you kazinator!
I quickly realised you were right about this. It's now fixed.
I may have posted this project a little early, but on the other hand it's great to get others input and read all this discussion.
That is a good point...
Perhaps str_pop_first_split() should pop, even if no delimiters are found. I'll give this some thought.
I'll put that macro in too. Thanks.