home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
sysutils
/
memram
/
limit.c
next >
Wrap
Text File
|
1992-05-11
|
291b
|
14 lines
#define INCL_DOS
#include <os2.h>
unsigned char buf[50];
main(int argc, char *argv[], char *envp[])
{
int rc;
rc = DosQuerySysInfo(QSV_TOTPHYSMEM, QSV_TOTPHYSMEM, &buf, sizeof(buf));
printf("%u bytes\n", *((unsigned *) buf));
printf("return code rc=%d\n",rc);
}