🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2793

Re: realloc

#2793
From: Doug Gwyn
Date: Mon, 22 Apr 1991 21:40
5 lines
752 bytes
In article <91112.102011LSC@SLACVM.SLAC.STANFORD.EDU> LSC@SLACVM.SLAC.STANFORD.EDU writes:
>     Does this mean that one has no means of checking the success or failure
>of the operation? Does one have to resort to errno?

No -- when one of the allocation functions fails, it returns a null pointer.
Technical Details
Message-ID: <15944@smoke.brl.mil>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!rutgers!cmcl2!adm!smoke!gwyn
References: <91112.102011LSC@SLACVM.SLAC.STANFORD.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!rutgers!cmcl2!adm!smoke!gwyn
From: gwyn@smoke.brl.mil (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: realloc
Message-ID: <15944@smoke.brl.mil>
Date: 22 Apr 91 21:40:06 GMT
References: <91112.102011LSC@SLACVM.SLAC.STANFORD.EDU>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 5