Hacker News new | past | comments | ask | show | jobs | submit login

Unless you're using a pre-specified configuration file format (e.g. TOML), then parsing configuration files requires a general parsing library.

If you have needs that require a general parsing library then why are you criticizing strtok()? It doesn't parse XML either, not C source code, nor any unspecified configuration file formats.




My point is that strtok has almost no reasonable uses in real programs.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: