17.04.2011, 14:21
Funзгo completa:
strtok(const string[], &index)
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;
}
Linha 3193:
CreateDynamicObject(13592, -1244.453, -443.192, 30.588, 0.0, -48.988, -33.750);
Linha 4493:
result[index - offset] = EOS;
strtok(const string[], &index)
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;
}
Linha 3193:
CreateDynamicObject(13592, -1244.453, -443.192, 30.588, 0.0, -48.988, -33.750);
Linha 4493:
result[index - offset] = EOS;

