hey guys im trying to check whether a user has keyed in
a certain character whether that be 's' 'u' or 'f' and if they have not keyed in those characters i want it to loop back and ask for input again.
i need to use something like fgetc or something like that which is able to input just a simple char.
If its bad input how do i get it to ask for input again
if(type != 's' || type != 'u' || type != 'f')
printf("wrong input only s, uor f is accepted");
while(type = fgetc(stdin)) != '\n' && type != EOF));