🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1566

Re: malloc(0)

#1566
From: Robert Jacobs
Date: Mon, 06 Aug 1990 14:20
5 lines
669 bytes
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?
Technical Details
Message-ID: <1990Aug6.142050.18629@gli.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!snorkelwacker!usc!zaphod.mps.ohio-state.edu!uwm.edu!rpi!uupsi!gli.com!bobj
References: <10830@spool.cs.wisc.edu> <13384@smoke.BRL.MIL> <1990Jul26.232216.15093@oresoft.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!snorkelwacker!usc!zaphod.mps.ohio-state.edu!uwm.edu!rpi!uupsi!gli.com!bobj
From: bobj@gli.com (Robert Jacobs)
Newsgroups: comp.std.c
Subject: Re: malloc(0)
Message-ID: <1990Aug6.142050.18629@gli.com>
Date: 6 Aug 90 14:20:50 GMT
References: <10830@spool.cs.wisc.edu> <13384@smoke.BRL.MIL> <1990Jul26.232216.15093@oresoft.com>
Organization: General Logistics International, Inc.
Lines: 5