how to split string into 2 with a space in c code example
Example: split string at space C
char* string;
char* first;
char* second;
for (int i=0;i<=strlen(string);i++) {
if (string[i] == ' ') {
string[i] = '\0';
first = string;
second = string+i+1;
break;
}
}