Thread: Linked List help

  1. #16
    Registered User
    Join Date
    Dec 2008
    Posts
    19
    1.0 should really be there :S

    while (((line_ptr=fgets(line,sizeof(line), input_stream))!=NULL) && ((no_values= sscanf(line,"%lf %lf",
    &current_measurements_ptr->x,
    &current_measurements_ptr->y))==2))
    Is the fget here pulling that first line away then?

  2. #17
    Banned
    Join Date
    Dec 2008
    Posts
    49
    Wait... you never have any way for the caller to get the new pointer.

  3. #18
    Banned
    Join Date
    Dec 2008
    Posts
    49
    Ok screw it. I am gonna go get something to eat. I will be on shortly.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Linked list program need help !!!
    By dcoll025 in forum C++ Programming
    Replies: 1
    Last Post: 04-20-2009, 10:03 AM
  2. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 10:10 AM
  3. Reverse function for linked list
    By Brigs76 in forum C++ Programming
    Replies: 1
    Last Post: 10-25-2006, 10:01 AM
  4. Template Class for Linked List
    By pecymanski in forum C++ Programming
    Replies: 2
    Last Post: 12-04-2001, 09:07 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM