3 ms·
The issue of strtok() being horrible hack is easily overcame by using str(c)spn() (and optionally bunch of pointer arithmetic).
by dfox 10y ago
The issue of strtok() being horrible hack is easily overcame by using str(c)spn() (and optionally bunch of pointer arithmetic).
- groovy2shoes 10y agoOf course. All of the issues with C's string library can be overcome rather easily, if only because it's so very basic.