Just after a little help here, I've shrunk the code down to keep it simpile, and I'm hoping there is an obvious reason why it wont return the character that I enter, any thoughts?? The same way seems to work for int and doubles but not for char.
Code:void position (char, char *); int main (void); { char orientation; char orien; position(orientation, *orien); printf("Orientation is: %c", orien); fflush(stdin); getc(stdin); return 0; } void position (char orientation, char *orien) { scanf("Selection is: %c", &orientation); *orien = orientation; }




Reply With Quote