Comment

Comment by bobmcnamara

Ages ago I worked with a system where malloc(0) incremented a counter and returned -1.

free(-1) decremented the counter.

This way you could check for leaks :p

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton