#include <stdio.h> #include <string.h> int main () { char str[] ="05/08/87"; char *token; printf ("%s : ", str); token = strtok (str,"/"); while (token != NULL) { printf ("%s ", token); token = strtok (NULL, "/"); } }