uint64_t build_table ( int32_t myparameter ) { if ( myparameter == 7 ) { return BOOL_TRUE; } else if (myparameter == 29 ) { return BOOL_FALSE; } else { return 23; } return 5; }
Why do you want to try more code?
Isn't it better to understand the code instead of doing wild experiments?
This is your last code with extra braces added to show what the compiler will do with the code.
if (myparameter == 7) { return BOOL_TRUE; } else { if (myparameter == 29) { return BOOL_FALSE; } else { return 23; } } else { <=== this else doesn't belong to any if!!! // "0" isn't a number but an address to a text string... if (myparameter != "0") { return 27; } else { return 5; } }
Read books and learn to understand code. Don't guess.
Greeting Kalim Rohgash
Did you get your code fixed. I have a same problem and do not know what to fix.