[HELP] 5 error
#3

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
[HELP] 5 error - by buzifej - 29.12.2010, 20:08
Re: [HELP] 5 error - by _rAped - 29.12.2010, 21:27
Re: [HELP] 5 error - by buzifej - 30.12.2010, 12:02
Re: [HELP] 5 error - by _rAped - 30.12.2010, 12:12
Re: [HELP] 5 error - by buzifej - 30.12.2010, 13:29
Re: [HELP] 5 error - by _rAped - 30.12.2010, 13:31
Re: [HELP] 5 error - by SkizzoTrick - 30.12.2010, 14:03

Forum Jump:


Users browsing this thread: 1 Guest(s)