19.06.2016, 06:27
Can anyone find the link for it? I can't find it anywhere.. Unless I'm blind...
Thanks..
Thanks..
// This function is deprecated and use of it should be avoided where possible.
// Better alternatives like sscanf are available for you to use.
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;
}