Частично убраны ошибки при компиляции.

This commit is contained in:
2011-09-18 08:09:26 +00:00
parent 341392ca54
commit bae02ff516
2 changed files with 4 additions and 4 deletions

View File

@@ -7590,17 +7590,17 @@ public PayDay()
return 1; return 1;
} }
strtok(const string[], &index) strtok(const string[], &index, const delimiter = ' ')
{ {
new length = strlen(string); new length = strlen(string);
while ((index < length) && (string[index] <= ' ')) while ((index < length) && (string[index] <= delimiter))
{ {
index++; index++;
} }
new offset = index; new offset = index;
new result[20]; new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) while ((index < length) && (string[index] > delimiter) && ((index - offset) < (sizeof(result) - 1)))
{ {
result[index - offset] = string[index]; result[index - offset] = string[index];
index++; index++;

View File

@@ -93,7 +93,7 @@ public FixRus(string[])
stock strlower(txt[]) stock strlower(txt[])
{ {
new tmp[MAX_TEXTSTR]; new tmp[512];
tmp[0]=0; tmp[0]=0;
if (txt[0]==0) return tmp; if (txt[0]==0) return tmp;
new i=0; new i=0;