delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/21/23:36:59

From: elric AT wheel DOT dcn DOT davis DOT ca DOT us (Jeffrey Taylor)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: What are these weird functions?
Date: 21 Nov 1996 22:05:24 GMT
Organization: Davis Community Network - Davis, California, USA
Lines: 20
Message-ID: <572jn4$sio@mark.ucdavis.edu>
References: <6463083001E72A00 AT iris DOT ernet DOT in>
NNTP-Posting-Host: wheel.dcn.davis.ca.us
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

tehmul%NIITPUN AT iris DOT ernet DOT in wrote:
: HI.
: I downloaded the zlib_pc library so that I can read .z files directly in my
: programs instead of unpacking them using compress -d ...
: I built the library w/o any problem.  When I linked it to my program, I got
: errors on unknown external symbols halloc and hfree.  I grep'ed the zlib_pc
: sources and found halloc and hfree.  The calls looked similar to calloc and
: free, so I changed it and it worked!  I still am curious about halloc and
: hfree.  What are they supposed to be?  I couldn't find any C book which talks
: about these functions.  Are they the remnants of some bygone era or
: something?
: 
: Ciao
: TG
: 
They are for allocating more than 64KB at a time.  Hence HUGE alloc and
HUGE free using HUGE pointers.  Isn't it nice to not have to deal with
such nonsense.

Jeff

- Raw text -


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