🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2822

Re: realloc

#2822
From: Bjoern Kriews
Date: Fri, 26 Apr 1991 10:27
18 lines
966 bytes
From article <91112.102011LSC@SLACVM.SLAC.STANFORD.EDU>, by LSC@SLACVM.SLAC.STANFORD.EDU:
>      "If the space cannot be allocated, the object pointed to by ptr is unchang
> unchanged."
> 
>      Does this mean that one has no means of checking the success or failure
> of the operation? Does one have to resort to errno?

"If it cannot reallocate the memory, it returns NULL"

Hmm, what to say, he DID RTFM  :-)

Greetings,
	Bjoern
	

---
bjoern@drdhh.hanse.de = Bjoern Kriews / Stormsweg 6 / 2000 Hamburg 76 / FRG
"gaaga mahwe Bjoern urgl ufzae Turbo-C bnub"     (J. Willamowius)
Technical Details
Message-ID: <2942.04.91@drdhh.hanse.de>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!mcshh!abqhh!drdhh!bjoern
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!uunet!mcsun!unido!mcshh!abqhh!drdhh!bjoern
From: bjoern@drdhh.hanse.de (Bjoern Kriews)
Newsgroups: comp.std.c
Subject: Re: realloc
Message-ID: <2942.04.91@drdhh.hanse.de>
Date: 26 Apr 91 10:27:22 GMT
References: <91112.102011LSC@SLACVM.SLAC.STANFORD.EDU>
Organization: Digital Island
Lines: 18