Really? That's interesting -- I'll have to read up on how free knows how many bytes to deallocate.
Thanks a lot!
Type: Posts; User: hexbox
Really? That's interesting -- I'll have to read up on how free knows how many bytes to deallocate.
Thanks a lot!
Right. So a de-allocate function is probably a bad idea? (I should leave it in the hands of the programmer calling it?)
My second issue is free'ing the memory alloted to the packet of data inside each linked list node.
Right now I have...
// free the given node (I should free what the void pointer val points...
Hi guys,
I have a working linked list which holds ints. I want to hold a pointer rather than an int. (This way, the linked list is generic in that it could be a list of pointers to any datatype)...
Because an array is faster than a linked list, basically.
The C code is eventually going to be parallelized and run on a beowulf cluster. I know that certain MPI functions require contiguous...
Hi there,
I'm doing some conversion of python to C code. I'm having quite a bit of problems converting what used to be linked lists in to C arrays.
In the python code, the programmer loves to...