LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   imple,menting a linked list in c program in linux (https://www.linuxquestions.org/questions/programming-9/imple-menting-a-linked-list-in-c-program-in-linux-105080/)

SaTaN 10-19-2003 01:48 AM

Quote:

Originally posted by bprasanth_20
sample print statement before calling list_destroy(new) in the main function. even that print statement is not executed. please

Hey did u put a "\n" at the end of print statement ???

i.e,

Code:

printf("This is before list_destroy\n");
Then I suppose it should get printed

bprasanth_20 10-20-2003 03:38 AM

hi i got the problem of destroying the list solved. just use free(&data) in place of free(data) in data_destroy function

bprasanth_20 10-25-2003 02:06 AM

if u know a suitable program to input and display characters and strings into a list using the above program please help me


All times are GMT -5. The time now is 04:45 AM.