24.01.2012, 20:39
Apague isso Paara Ver
pawn Код:
strtok(const string[], & index)
{
new length = strlen(CELULAS);
while ((index < length) && (CELULAS[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (CELULAS[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = CELULAS[index];
index++;
}
result[index - offset] = EOS;
return result;
}