Home Forums C Programming standard I/O

Viewing 1 reply thread
  • Author
    Posts
    • #2104
      Athira Abin
      Participant

      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
      Participant

      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…

Viewing 1 reply thread
  • The forum ‘C Programming’ is closed to new topics and replies.