Search:

Type: Posts; User: GDB

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    4,481

    Thanks. I went for p->name = malloc(/* */); ...

    Thanks. I went for p->name = malloc(/* */);

    And please read the FAQ on how to use feof() properly (which you are not).

    Yes SIR!
  2. Replies
    6
    Views
    4,481

    Actually, line 32, we should have in output: name...

    Actually, line 32, we should have in output: name surname 011 111

    but it does not...

    fprintf(stdout, "%s %s\n", list[1]->name, list[1]->surname);

    should printout regarding data.txt:

    name...
  3. Replies
    6
    Views
    4,481

    fill in a struct with fscanf

    Please I need help, I can't find my bug...

    data.txt contains:
    /* name surname integer integer */
    name surname 011 111
    name surname 1 2
    ...

    then:
Results 1 to 3 of 3