couper.c 249 B

12345678910111213141516171819
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main ()
  4. {
  5. char str[] ="05/08/87";
  6. char *token;
  7. printf ("%s : ", str);
  8. token = strtok (str,"/");
  9. while (token != NULL)
  10. {
  11. printf ("%s ", token);
  12. token = strtok (NULL, "/");
  13. }
  14. }