standard I/O

Home Forums C Programming standard I/O

This topic contains 1 reply, has 2 voices, and was last updated by  Humayan 10 years, 5 months ago.

  • Author
  • #2104

    Athira Abin

    how do i jump to the next line after a particular character is found from a standard input. this should evade all the remaining characters in that line after that particular character.

    Im actually looking for a way to jump to the next line.

    Please help/

  • #3392


    What I would do is read in all characters until newline when I found the appropriate character:

    char ch;

    // the next character you read will be from the front of the next line…

You must be logged in to reply to this topic.