[Help]Got Errors while compile
#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]Got Errors while compile - by Leo_Johnson - 23.09.2011, 13:16
Re: [Help]Got Errors while compile - by Max_Coldheart - 23.09.2011, 13:18
Re: [Help]Got Errors while compile - by Leo_Johnson - 23.09.2011, 13:54
Re: [Help]Got Errors while compile - by Fat - 23.09.2011, 14:15
Re: [Help]Got Errors while compile - by Leo_Johnson - 23.09.2011, 14:19
Re: [Help]Got Errors while compile - by jotan. - 23.09.2011, 15:50

Forum Jump:


Users browsing this thread: 2 Guest(s)