Sting Manipulation

//strtok example
#include <stdio.h>
#include <string.h>

  char str[] = "A1000>B2001>C123>D2000>";
  char * pch;

  printf ("Splitting string \"%s\" into tokens:\n", str);
  pch = strtok (str, ">");
  while (pch != NULL) {
    printf ("%s\n",pch);
    pch = strtok (NULL, ">");
  }