I'm writing some C code for an embedded application, and I've run into a problem wherein a compare against an enumerated value is not being executed correctly. Take the following ...
Why can't it be done like this?
Hi there i have a method called
int compare(char op1, char op2)
return 1, -1 or 0