Re:String tokenization in C
by jstimpfle on Sunday December 16, 2018 @08:16AM
(#18692926)
As someone else pointed out what you really want is the implementation of strspn/strcspn which is where the loop is. You don't "carry" that code along. You just write
or something along those lines. Whatever you need. It's not rocket science. Putting highly fluctuating and project-specific code like this in a library would only have disadvantages. Not everything should be in a library. In fact, most things should not be.
[ Parent
| on HN ]
There are no comments on this comment yet.