Linked List help

This is a discussion on Linked List help within the C Programming forums, part of the General Programming Boards category; 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 ...

  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.

Page 2 of 2 FirstFirst 12
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, 11:03 AM
  2. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 11:10 AM
  3. Reverse function for linked list
    By Brigs76 in forum C++ Programming
    Replies: 1
    Last Post: 10-25-2006, 11: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, 11:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21