strtok now replaced entirely by strdup.