Thanks. I went for p->name = malloc(/* */);
And please read the FAQ on how to use feof() properly (which you are not).
Yes SIR!
Type: Posts; User: GDB
Thanks. I went for p->name = malloc(/* */);
And please read the FAQ on how to use feof() properly (which you are not).
Yes SIR!
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...
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: