Horje
split string at space C Code 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;
	}
}




C

Related
time now c Code Example time now c Code Example
mark rober Code Example mark rober Code Example
conditional compilation in c Code Example conditional compilation in c Code Example
tableau c Code Example tableau c Code Example
how to print hi in c Code Example how to print hi in c Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7