Re: How to put comments in initialization file read by fscanf()?

Discussion in 'C Programming' started by David Rubin, Jul 14, 2003.

  1. David Rubin

    David Rubin Guest

    wrote:

    [snip - code to remove '#' comments]
    > Thanks, Al, but I'm not sure if this will work. I want my comments to the right
    > of the data, on the same line. But perhaps I can use the general idea.


    Just watch out for "false comments" which appear inside single or double
    quotation marks.

    /david

    --
    Andre, a simple peasant, had only one thing on his mind as he crept
    along the East wall: 'Andre, creep... Andre, creep... Andre, creep.'
    -- unknown
     
    David Rubin, Jul 14, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Torek
    Replies:
    0
    Views:
    398
    Chris Torek
    Jul 14, 2003
  2. Blankdraw

    Can't read entire record - fscanf (choked up)

    Blankdraw, Aug 25, 2003, in forum: C Programming
    Replies:
    2
    Views:
    540
    Eric Sosman
    Aug 27, 2003
  3. CJ

    fscanf to read lines from file?

    CJ, May 20, 2004, in forum: C Programming
    Replies:
    2
    Views:
    2,996
    Dan Pop
    May 21, 2004
  4. Replies:
    7
    Views:
    475
    Default User
    Sep 5, 2006
  5. Matrixinline

    fscanf to read string between " mark

    Matrixinline, May 29, 2008, in forum: C Programming
    Replies:
    1
    Views:
    1,038
    Jens Thoms Toerring
    May 29, 2008
Loading...

Share This Page