Thread: Line matching

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Registered User
    Join Date
    Jun 2009
    Posts
    486
    Heh, silly me

    No, it doesn't work - it gives me 0, and I get a warning:

    chargestate.c: In function ‘countTimeSteps’:
    chargestate.c:15: warning: passing argument 1 of ‘sscanf’ from incompatible pointer type


    Which I don't know how to intepret

    EDIT: it is reading in the lines, because adding a puts(line) prints the output file just fine...
    Last edited by KBriggs; 06-09-2009 at 08:33 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointer and Polymorphism help.
    By Skyy in forum C++ Programming
    Replies: 29
    Last Post: 12-18-2008, 09:17 PM
  2. Printing Length of Input and the Limited Input
    By dnguyen1022 in forum C Programming
    Replies: 33
    Last Post: 11-29-2008, 04:13 PM
  3. Finding carriage returns (\c) in a line
    By JizJizJiz in forum C++ Programming
    Replies: 37
    Last Post: 07-19-2006, 05:44 PM
  4. Adding Line numbers in Word
    By Mister C in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 06-24-2004, 08:45 PM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM