X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Mon, 25 Feb 2002 14:01:01 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: CBFalconer cc: djgpp-workers AT delorie DOT com Subject: Re: Malloc/free DJGPP code In-Reply-To: <3C7A0C9A.6D699A31@yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 25 Feb 2002, CBFalconer wrote: > Incidentally, I was surprised to learn (from info libc) that sbrk > returns -1 for failure rather than NULL. Is this correct, or > possibly a documentation error? It is correct. sbrk is available in many Unix systems, so we must return what sbrk returns on Unix, which is -1.