[Ajuda] Erro strtok !!!
#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
Erro strtok !!! - by Catchorro - 26.10.2013, 18:29
Re: Erro strtok !!! - by XxFaTaLxX - 26.10.2013, 18:31
Re: Erro strtok !!! - by andreasbleck - 26.10.2013, 18:31
Re: Erro strtok !!! - by Catchorro - 26.10.2013, 18:33
Re: Erro strtok !!! - by BielCOP - 26.10.2013, 18:38
Re: Erro strtok !!! - by Catchorro - 26.10.2013, 18:41
Re: Erro strtok !!! - by andreasbleck - 26.10.2013, 18:57
Re: Erro strtok !!! - by Catchorro - 26.10.2013, 19:00
Re: Erro strtok !!! - by PT - 26.10.2013, 19:05
Re: Erro strtok !!! - by Catchorro - 26.10.2013, 19:41

Forum Jump:


Users browsing this thread: 1 Guest(s)