Newsgroups: comp.sys.atari.st.tech
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!wookumz.gnu.ai.mit.edu!entropy
From: entropy@gnu.ai.mit.edu (entropy)
Subject: Ptermres()
Message-ID: <ENTROPY.91Mar31015905@wookumz.gnu.ai.mit.edu>
Sender: daemon@mintaka.lcs.mit.edu (Lucifer Maleficius)
Organization: alphabetic
Distribution: comp
Date: 31 Mar 91 01:59:05
Lines: 12


If I want a program to malloc() some memory (which I want to stay
around after exiting) can I then do a Ptermres(0, 0) or do I still have
to save the whole program in memory in order to keep that malloc'ed
memory around?  Or should I do Ptermres(256, 0) to keep only the
basepage?  Is it legal to only keep part of the program from the top
to a certain point in the middle?  What is the proper way to calculate
the first parameter for Ptermres to keep the whole thing?  I'm
currently doing Ptermres((base->hitpa - base->lowtpa), 0).

Thanks,
  entropy
