24.11.2009, 18:17
i updated to this now i have loads of error in my gm arrays size is to small how to fix please
and no im not useing sscanf
thanks
and no im not useing sscanf
thanks
Код:
stock strtok(const stringdutils[], &index,seperator=' ') { new length = strlen(stringdutils); new offset = index; new result[MAX_stringdutils]; while ((index < length) && (stringdutils[index] != seperator) && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = stringdutils[index]; index++; } result[index - offset] = EOS; if ((index < length) && (stringdutils[index] == seperator)) { index++; } return result; }