thanks
Printable View
thanks
Well, for one thing...
...you just lost your old header.Code:if (header->next == NULL){
header = (list_type*)malloc(sizeof(list_type));
Usually means one of the following.Quote:
Originally Posted by msdn
- You didn't implement the function
- You didn't spell it right, or get the case right ( foo != Foo for example)
- For C++, the parameters don't match.
> new = (list_type *) malloc ( sizeof (list_type) );
See the FAQ on casting (or rather, not casting) malloc in C.