you should write sth like this:
#include
#include
int main();
{
char string[] = "ls &"; //you should not write 100, cuz you waste memory
char *pointer;
pointer = strtok(string, " "); //skip only spaces
while(pointer != NULL)
{
printf("%s\n", pointer);
pointer = strtok(string, " ");
}
return 0;
}