#include <stdio.h>
#include <string.h>
/*
 * Program to demonstrate srtok
 * Terry Harvey CISC 105 section 98 TA Tina Weymouth
 *
 * How can you modify this so that "person" and "s" are not separated
 * into two tokens?
 */

int main(){

    char line[] = "gerbils are a person's best rodent";
    char * temp; ///asterisk means this var holds an address
    char delims[] = " '"; two delimiter chars

    temp = strtok(line, delims);

    while(temp != NULL){
	printf("%s\n", temp);
	temp = strtok(NULL, delims);
    }

    return 0;
}
