logoalt Hacker News

ErikCorrylast Saturday at 1:46 PM1 replyview on HN

Nice!

Why malloc? Surely this is an on-heap object, not malloc allocated?


Replies

tialaramextoday at 1:33 AM

I think you've got yourself confused. The heap is what malloc is allocating. So it's like you said "Surely this is somewhere in Europe, not France?" or "Surely this is a round shape, not a circle?"

show 1 reply