Comment

Comment by kvemkon

> the program should check for a null pointer and gracefully exit if one is found: ...

If malloc() fails, there is no need to exit the program completely with exit(), only return from the current function with an error.

parent kvemkon 22 days ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton