Got strtokOnlyOnce.c to work as intended, after debugging for a long time