ajuda strtok
#3

Poe isso no final do GM
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;
}
Se der +erros poste eles e destaque as linhas..
Reply


Messages In This Thread
ajuda strtok - by Walking - 06.10.2012, 21:20
Re: ajuda strtok - by .FuneraL. - 06.10.2012, 21:37
Re: ajuda strtok - by tonisantolia - 06.10.2012, 21:41

Forum Jump:


Users browsing this thread: 2 Guest(s)