I\'d like to know how to check if a user types the \"backspace\" character.
I\'m using the getch() function i.e. \"key = getch()\" in my C program and i
getch() function i.e. \"key = getch()\"
You didn't say which library the getch() function comes from (it isn't part of the C standard), but if it's the one from ncurses you can check the value of key against KEY_BACKSPACE.
getch()
key
KEY_BACKSPACE