News for hackers. Stuff that matters.
Re:String tokenization in C by jstimpfle on Saturday December 15, 2018 @08:15AM (#18688265)
There are of course tons of code on the net, but there is no need to standardize another grab-bag of bad API calls. If you need a batteries-included library you use python or similar. If you write in C, you care so much that you largely avoid the standard library and design your code from the ground up.
Re:String tokenization in C by Matthias247 on Saturday December 15, 2018 @12:12PM (#18689212)
You should. However there are lots of organizations around that use C because that’s what’s used in their domain (E.g. embedded) AND use the standard library, because they don’t know how to do better.

The results are often worse than if they would have used a higher level language right from the start.

Re:String tokenization in C by dkrikun on Saturday December 15, 2018 @10:59AM (#18688859)
There are numerous reasons to write in C, apart from caring so much. Using strtok() is not that bad after all because its a simple function after all.