getmemsize(2) CLIX getmemsize(2)
NAME
getmemsize, getfreemem, getavailsmem, getavailrmem - Returns memory
information
LIBRARY
Intergraph XIO Library (libix.a)
SYNOPSIS
int getmemsize(
void );
int getfreemem(
void );
int getavailsmem(
void );
int getavailrmem(
void );
DESCRIPTION
The getmemsize() function returns the size of physical memory in bytes.
The getfreemem() function returns the amount of unused memory in bytes.
The getavailsmem() function returns the amount of memory that can be
swapped in bytes. The getavailrmem() function returns the amount of
available resident memory in bytes.
EXAMPLES
The following returns the amount of physical memory, unused memory, swap
memory, and resident memory:
#include <stdio.h>
main()
{
extern int getmemsize();
extern int getfreemem();
extern int getavailsmem();
extern int getavailrmem();
printf("You have %d bytes of physical memory.\n",getmemsize());
printf("You have %d bytes of unused memory.\n",getfreemem());
printf("You have %d bytes to swap.\n",getavailsmem());
printf("You have %d bytes of resident memory.\n",getavailrmem());
}
RETURN VALUES
2/94 - Intergraph Corporation 1
getmemsize(2) CLIX getmemsize(2)
See DESCRIPTION.
2 Intergraph Corporation - 2/94