i'm reading in characters from the keyboard and i'm wanting to check if the character entered is a backspace and if it is i want to output the ASCII value 08.
i have this snippet of my code:
c = fgetc(stdin);
if (c== '\127')
fputc('\08',stdout);
I'm not sure if this is right as it doesn't seem to be working