gave me a crash ...

In case this helps:

Click to reveal..

This is my current code:
Code:
const char * __cdecl strchr(const char *, int);

function checkCommand(char* command){
	char* ch = strchr(command,' ');
	printf("Result: %s",ch);
}




In case you even care:

Click to reveal..

What i want is to do this:

Code:
function checkCommand(char* command){
	// Check space locations
	// Split string into parts
	// Compare each part and perform action
}



Such that if i pass "player health 50" as the parameter
the function splits it up into:
1: "player"
2: "health"
3: "50"
and (obviously) add 50 to player health.

My only problem is that i am not really familiar with Lite-C string manipulation :S
I got this working in java. Having a lot of trouble finding the methods to translate into L-C ...