[AJUDA] srtok erro !
#2

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
[AJUDA] srtok erro ! - by gcoder - 25.03.2012, 16:53
Re: [AJUDA] srtok erro ! - by ViniBorn - 25.03.2012, 19:17

Forum Jump:


Users browsing this thread: 1 Guest(s)