how can i get c to only accept 1 character for an input. i have a menu system 1-5 using a switch statement but when i put in 12345 or someting similiar it still accepts the first number as 1 and executes the number 1 menu.im pretty new to c so any help is much appreciated.thx