正在加载视频...

视频加载失败

Advanced C Pro Tip: malloc() returns NULL only in one case

70,156 次观看 • 1 年前 •via X (Twitter)

10 条评论

Mohit Mishra 的头像
Mohit Mishra1 年前

Credits: @tsoding

Ivica Bogosavljevic 的头像
Ivica Bogosavljevic1 年前

malloc can return a valid pointer and then, when you try to write to it, it crashes. it's like a poor person with a fake gucci bag

マリク 的头像
マリク1 年前

yeah, I need to watch this guy videos

Mohit Mishra 的头像
Mohit Mishra1 年前

everyone should 😉

Karsten Aalderks 🚴‍♀️ 🎻 🎒 ⛽️ 的头像
Karsten Aalderks 🚴‍♀️ 🎻 🎒 ⛽️1 年前

In 1987 we used a virtual memory routine from Marc Adler under MS-DOS and scrolled 16GB of Oracle V.5 Data in our own text window!

Nic Barker 的头像
Nic Barker1 年前

Only malloc, never free, buy more ram - tsoding

Твиттерский эксперт №1 的头像
Твиттерский эксперт №11 年前

What is he doing? Checking the value returned by malloc with ASSERT? 🤦🤦‍♀️🤦‍♂️

Medha Jain 的头像
Medha Jain1 年前

Can u share the link

Mohit Mishra 的头像
Mohit Mishra1 年前

it was shared on the discord channel with me. Let me check if I can find the video for this

PELock 的头像
PELock1 年前

Will do!

相关视频