#include <stdio.h>
#include <string.h>

int main() {
    printf("practice3: tokenizing\n");
    char strArr[] = "fun, cool, sexy";
    const char delimiters[] = ", ."; //functions the same without .
    char *token = strtok(strArr, delimiters);
    
    while( token != NULL ) {
        printf("taejong is %s\n", token);
        token = strtok(NULL, delimiters);
    }


    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: