🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #32128

Re: BITNET mail follows

#32128
From: Barnacle Wes
Date: Sun, 24 Apr 1988 07:22
33 lines
1740 bytes
In article <8804200802.AA03159@ucbvax.Berkeley.EDU>, 0ALEVI@POMONA.BITNET writes:
 [...]
> what are the two parameters to the Mshrink(a,b) call?  Do you know? Are these
> universal to all compilers?  Does the function return a value (such as an
> error code)?

From the MWC docs:

Mshrink - gemdos function 74.  Shrink amount of allocated memory.

#include <osbind.h>
long Mshrink(begin, length)
long begin, length;

*Mshrink* shrinks the amount of memory allocated by a program, and
returns dynamic memory to the free memory pool.  _begin_ points to the
beginning of the space to be returned, and _length_ indicates the
amount of memory to be returned.  *Mshrink* returns zero if memory
could be de-allocated, and non-zero if it could not.  

NOTES
The *gemdos* call has a third parameter that is always zero; the
Mshink macro inserts this parameter automatically.
-----------------------------------------------------------------------

I think the <osbind.h> file came from Atari, so most compilers should
support the two parameters mentioned, and automagically insert the 0
parameter.
-- 
    /\              -  "Against Stupidity,  -    {backbones}!
   /\/\  .    /\    -  The Gods Themselves  -  utah-cs!uplherc!
  /    \/ \/\/  \   -   Contend in Vain."   -   sp7040!obie!
 / U i n T e c h \  -       Schiller        -        wes
Technical Details
Message-ID: <168@obie.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-tis!oodis01!uplherc!sp7040!obie!wes
References: <8804200802.AA03159@ucbvax.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-tis!oodis01!uplherc!sp7040!obie!wes
From: wes@obie.UUCP (Barnacle Wes)
Newsgroups: comp.sys.atari.st
Subject: Re: BITNET mail follows
Message-ID: <168@obie.UUCP>
Date: 24 Apr 88 07:22:46 GMT
References: <8804200802.AA03159@ucbvax.Berkeley.EDU>
Organization: the Well of Souls
Lines: 32
Summary: Mshrink system call...