1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WhiteSpaces and Blank Lines

Discussion in 'C' started by marconi_07, Oct 4, 2009.

  1. marconi_07

    marconi_07 New Member

    Joined:
    Aug 10, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Hi,Need help for a 'C' Code to ignore 'WhiteSpaces (Carriage Return, Enter, etc)' and 'Blank Lines' while reading an input file.Thanks,Marconi.
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    Use the isspace(c) function. Returns TRUE if the character c is a whitespace character.
     

Share This Page