Hey all,

I'm new to C and am stuck...

I have written the following code:
...
char * token[32];
token[0] = strtok(input," ");
char * p;
int i = 1;
while (p = strtok(NULL, " "))
token[i++] = p;
...
and would like to remove the \n character from token[i-1].

Anyone know how to do this?