standard I/O

Home Forums C Programming standard I/O

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

  • Author
    Posts
  • #2104

    Athira Abin
    Member

    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

    Humayan
    Member

    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.

0 Shares
Share
+1
Tweet
Share
Stumble