malloc(0)

Robert Jacobs bobj at gli.com
Tue Aug 7 00:20:50 AEST 1990


About using malloc(0) to point to a unique place. What's wrong with using
malloc(1) ??
That way malloc(0) would do what is expected. Return a NULL pointer.

This just seems too easy, doesn't it?



More information about the Comp.std.c mailing list