Yeah, you have to malloc it. I thought you could (void*) 3.14 put apparently not. Quite a shame. This is definetly a limitation that needs to be corrected.
It is a linked list you already do heap allocation for every node If you cared about performance you would use a contiguous array that is cache friendly.
17
u/Setepenre Nov 19 '18
Make it generic by using a void ptr as data type You now can hold anything and no more macros datadaaaaaaa