Error.
#5

pawn Код:
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
Error. - by James_Bourne - 12.08.2011, 14:02
Re: Error. - by Riddick94 - 12.08.2011, 14:13
Re: Error. - by Jafet_Macario - 12.08.2011, 14:13
Re: Error. - by James_Bourne - 12.08.2011, 14:35
Re: Error. - by Jafet_Macario - 12.08.2011, 14:38
Re: Error. - by James_Bourne - 12.08.2011, 14:40
Re: Error. - by Jafet_Macario - 12.08.2011, 14:41
Re: Error. - by MadeMan - 12.08.2011, 14:42
Re: Error. - by James_Bourne - 12.08.2011, 15:03
Re: Error. - by MadeMan - 12.08.2011, 15:06

Forum Jump:


Users browsing this thread: 1 Guest(s)