amount of memory available

is there a c/c++ function in qnx4.25 that can tell in runtime how much
memory is left , like ‘sin free’ ??

qnx_osinf()

“Ran Zhang” <rzhang@vamcointernational.com> wrote in message
news:d55uma$pj1$1@inn.qnx.com

is there a c/c++ function in qnx4.25 that can tell in runtime how much
memory is left , like ‘sin free’ ??

Mario Charest postmaster@127.0.0.1 wrote:

qnx_osinf()

qnx_osinfo(), actually.

And there are (now) two fields that represent “free” memory, since
one of them wasn’t wide enough.

You want to use freepmem for free memory (and totpmem for total
memory.)

(freememk, a short unsigned, unfortunately was not future looking
enough, which is why there is the 2nd set of fields giving, apparently,
the same information.)

-David

“Ran Zhang” <> rzhang@vamcointernational.com> > wrote in message
news:d55uma$pj1$> 1@inn.qnx.com> …
is there a c/c++ function in qnx4.25 that can tell in runtime how much
memory is left , like ‘sin free’ ??


David Gibbs
QNX Training Services
dagibbs@qnx.com