🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5868

Re: ? (was: realloc)

#5868
From: Doug Gwyn
Date: Tue, 04 Apr 1989 08:13
13 lines
1241 bytes
In article <4801@ingr.com> crossgl@ingr.UUCP (Gordon Cross) writes:
>Yes, it is.  I've always wanted behavior similiar to an "out-of-memory"
>signal that I could trap to let me know when there is no more memory.  So
>much so in fact, I wrote my own malloc that lets me set things up to have
>a function called whenever an out-of-memory condition occurs.  Regrettably
>to the best of my knowlegde, the pANS does not address this issue...

Sure it does.  malloc() returns a null pointer when there is no more
memory.  You can build whatever additional mechanism you want on top
of this; X3J11 was considerate enough not to decide for you what this
should be.

However, I don't think that has anything to do with Andrew's complaint.
Technical Details
Message-ID: <9976@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!adm!smoke!gwyn
References: <10170@bloom-beacon.MIT.EDU> <10032@ihlpb.ATT.COM> <934@atanasoff.cs.iastate.edu> <9132@alice.UUCP> <4801@ingr.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn )
Newsgroups: comp.std.c,comp.lang.c
Subject: Re: ? (was: realloc)
Message-ID: <9976@smoke.BRL.MIL>
Date: 4 Apr 89 08:13:10 GMT
References: <10170@bloom-beacon.MIT.EDU> <10032@ihlpb.ATT.COM> <934@atanasoff.cs.iastate.edu> <9132@alice.UUCP> <4801@ingr.com>
Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>)
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 13