Path: 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... 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 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 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