4 ms·
Strtok_r() is usually available as is the case for the other lib functions with global state. If not, it is a simple function to clone with whatever improvement
by kevin_thibedeau 4y ago
Strtok_r() is usually available as is the case for the other lib functions with global state. If not, it is a simple function to clone with whatever improvements you wish. I have a version that doesn't insert NULs so it can be used on read-only strings.
- Gibbon1 4y agoReminds me I need to rework mine to use slices.