Cant compile
#6

so, if I want to add some cmd-s, I need to add this strtok before?

strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}

new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}


Reply


Messages In This Thread
Cant compile - by Ironboy500 - 18.08.2009, 08:40
Re: Cant compile - by Khelif - 18.08.2009, 08:47
Re: Cant compile - by pliva_sb - 18.08.2009, 08:48
Re: Cant compile - by Ironboy500 - 18.08.2009, 10:28
Re: Cant compile - by Luca Dimonte - 18.08.2009, 11:39
Re: Cant compile - by Ironboy500 - 18.08.2009, 15:25

Forum Jump:


Users browsing this thread: 1 Guest(s)