Basically the title is self explaining. I’m programming in C and i use fgets as the input function but i do not want that control characters get printed.
Share
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.
fgets()is rather simple, and doesn’t offer you much control over what appears on the screen. I don’t think that it’s possible to do this. You may want to look into something more powerful – like readline.