See if this helps :
https://stackoverflow.com/questions/13542055/how-to-do-scanf-for-single-char-in-c
Joe J.
asked  07/11/17
                Get a free answer to a quick problem.
                Most questions answered within 4 hours.
            
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.