char problem
Posted: Sat Apr 03, 2004 12:00 am
why dose this code output this testestt3#@ when test is typed
char commandch[255];
int commandint;
if( commandch == "test"){
// do crap
}
commandch[commandint] = ch;
commandint++;
any help on code correcttion would be garte
thanks in advanced iota
char commandch[255];
int commandint;
if( commandch == "test"){
// do crap
}
commandch[commandint] = ch;
commandint++;
any help on code correcttion would be garte
thanks in advanced iota