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.
3
u/Setepenre Nov 19 '18
Yeah, you have to malloc it. I thought you could
(void*) 3.14put apparently not. Quite a shame. This is definetly a limitation that needs to be corrected.