delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/26/01:55:04

Date: Tue, 26 Sep 2000 08:55:19 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: rafael AT geninfor DOT com
Message-Id: <7263-Tue26Sep2000085518+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5h
CC: djgpp AT delorie DOT com
In-reply-to: <8qns3d$6g4$1@diana.bcn.ttd.net> (rafael@geninfor.com)
Subject: Re: negative sbrk(0)
References: <8qns3d$6g4$1 AT diana DOT bcn DOT ttd DOT net>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Rafael Garcia" <rafael AT geninfor DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Mon, 25 Sep 2000 17:50:04 +0200
> 
> Well, I have got sbrk(0) to return negative values in some cases, so the
> function tells I have -1950Kb.

sbrk returns an insigned value, not a signed one.  So negative values
are actually very large positive ones.  Happens a lot on Windows.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019