Yep heres what i have so far. This produces no compile errors but what i wanna know is how do i check to see if the next token is an integerCode:#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define DELIM " " #define BUF_SIZE 100 void *safe_malloc(void *buf,int size); int main(int argc, char** argv) { char *buf; char *word; char *ch; char Insertion[] = "i"; buf = (char *)safe_malloc((void *)buf,BUF_SIZE+1); while((buf=fgets(buf,BUF_SIZE+1,stdin))!=NULL) { word = strtok(buf, "DELIM , \n"); switch (strcmp(word,Insertion)) { case 0: ch = strtok(NULL, "DELIM, \n"); if(ch == NULL) { printf("insert interger\n"); } else printf("ok\n"); break; default: printf("please type into the input a command to use in the BST\n"); break; } } return 0; } void *safe_malloc(void *buf,int size) { if((buf=(char *)malloc(size))==NULL) { fprintf(stderr,"Cannot allocate memory for buffer\n"); exit(1); } return(buf); }