When i do this
my program wont go out the loop when pressing the Enter key, wich results in a \n character , although that is with fgets.Code:while( user_char != '\n'){ /*do some stuff*/ }
but when i do this.
It works perfect now it goes out the loop when pressing the Enter key.Code:while( user_char != '\r'){ /*do some stuff---notice the r*/ }
Any logic explanation behind this?



LinkBack URL
About LinkBacks



Salem is my idol , Imma be just like him