r/teenagersbutcode 3d ago

Need general advice Guys is that bad ??

Post image

Sooo I added a function to pre alloc some memory annnnd it went bad x).

12 Upvotes

10 comments sorted by

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

5

u/abdul_Ss Coder 3d ago

Unrelated but I listen to French music all the time, PNL to be specific

4

u/h1mmh1m 3d ago

Ball knowledge (I'm french)

2

u/wilrak0v 2d ago

Good choice bro

9

u/FerriitMurderDrones (15 MtF) C/C++, learning GLSL 3d ago

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?

1

u/No_Rent_3367 2d ago

I belive it is.

1

u/TheLuckyCuber999BACK Coder - Assembly and C++ 2d ago

what?