- Code: Select all
char oi[] = "123";
if (oi!="") {
stringLength = strlen(oi);
for(i = 0; i < stringLength; ++i){
if (oi[i]="s"){S();}
if (oi[i]="o"){O();}
else linie();
}
strcpy(oi,"");
I suspect is the string, I read it wrong or something like that, where is the line if (oi[i]="s"){S();} mplab says warning: (358) illegal conversion of pointer to integer