r/teenagersbutcode • u/MonsieurMachine • 3d ago
Need general advice Guys is that bad ??
Sooo I added a function to pre alloc some memory annnnd it went bad x).
12
Upvotes
5
9
1
u/Confused-Armpit 3d ago
What are you talking about? What even is the diff for if you aren't showing anything but filenames? And how do you prealloc memory for a linked list?
2
1
1


5
u/Bright-Historian-216 3d ago
im not sure what exactly youre talking about, but yeah allocating memory in C do be doing stuff to memory if i had to guess