Is there a way to use sscanf %c to read in the value of a char? How would I put in the escape sequence for unicode or ascii for a particular character?
sscanf("%c",chr);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can read a character from the input with
Reading escape sequences can be operating system specific. On most you would have to tell the terminal driver to not process escape sequences into other actions (like input line editing) and instead pass the raw characters through. Once that is set, then you can repeat the above sequence for each character.