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,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    Use the isspace(c) function. Returns TRUE if the character c is a whitespace character.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice