Versteh es nicht könnt ihr mir helfen?
Error's
(24854) : error 047: array sizes do not match, or destination array is too small
(26367) : error 047: array sizes do not match, or destination array is too small
(26426) : error 047: array sizes do not match, or destination array is too small
Zeilen
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++;
}
/*24854*/ result[index - offset] = EOS;
return result;
}
//26367
cmd = strtok(cmdtext, idx);
//26426
tmp = strtok(cmdtext, idx);