#include <stdio.h>
#include <string.h>
int main() {
char line[] = "lol | omg | bbq";
enum{ MAXARGS = 10 };
char const *commandstrings[MAXARGS];
int i = 0;
char * commandstr = strtok(line,"|");
while(commandstr != NULL){
commandstrings[i] = commandstr;
printf("%s \n",commandstrings[ i ]);
i++;
commandstr = strtok(NULL,"|");
}
printf("first parsing complete!");
}