[Ajuda] Problemas com strtok
#2

coloca no fim do GM / FS

pawn Код:
stock 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
Problemas com strtok - by Renan_Sinister - 25.09.2012, 03:15
Re: Problemas com strtok - by Maklister - 25.09.2012, 03:18
Re: Problemas com strtok - by Renan_Sinister - 25.09.2012, 03:21

Forum Jump:


Users browsing this thread: 2 Guest(s)