Hi All, I have implemented a linked list in my program on infineon sle66c168PE. at very first time i intialize the starting node with the null value and whenever i need to add the node to the linked list the malloc function return me the value 0x0000 that is a null value.which causes the program to fail. can anyone please suggest me something to work-around this problem... its very urgent ...Plz Thanks and Regards, Ankit
"I have implemented a linked list" Note that it is not necessary to use dynamic memory allocation (malloc, etc) in order to use linked lists. You can allocate memory space statically (at compile time) and simply adjust the links at run time - eg, have a "free" and an "in-use" list. I think you should be getting the idea by now...
Do not go by the urban legend "If you can do C, you can do any processor" Amen !