// myStrTok.cc P.Conrad for CISC220,06J

// ***  STUB ****

// This is a sample implementation of strtok to illustrate the use
// of pointers, and a static variable inside a function.


// I Robot,2004,Will Smith,120000000,144795350
//   or
// Will Smith,Willard Christopher Smith, Jr.,09/25/1968,Philadelphia, PA



#include "myStrTok.h"


char * myStrTok(char * s1, char delimit)
{
  char *p = s1;

  while (*p   != delimit     )
    p++;

  // now p points to the first occurence of delimit in s1
  // change it into a null character

  *p = '\0';

  return s1;
  
}



