Don't use ``strtok``. It's not reentrant. Perhaps ``strchr`` instead?