29.01.2020, 14:17
Hey, I have some errors and warnings regarding to this function:
The errors:
Code:
21: CorrectCaps(const string[],dest[]="",len=0)
22: {
23: for(new i=1;i<strlen(string);i++)
24: if(string[i]>64 && string[i]<94)
25: string[i]+=32;
26: dest[0]=EOS;
27: strcat(dest,string,len);
28: return string;
29: }
Code:
(25) : error 022: must be lvalue (non-constant) (25) : warning 217: loose indentation (25) : error 017: undefined symbol "i" (25) : warning 215: expression has no effect (26) : warning 217: loose indentation


