C - String in ein Array von Strings aufteilen
Ich bin mir nicht ganz sicher, wie ich das in C machen soll:
char* curToken = strtok(string, ";");
//curToken = "ls -l" we will say
//I need a array of strings containing "ls", "-l", and NULL for execvp()
Wie würde ich das machen?