home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / LIMIT.ZIP / LIMIT.C next >
Text File  |  1992-05-11  |  291b  |  14 lines

  1. #define INCL_DOS
  2. #include <os2.h>
  3.  
  4. unsigned char buf[50];
  5.  
  6. main(int argc, char *argv[], char *envp[])
  7. {
  8.    int rc;
  9.  
  10.    rc = DosQuerySysInfo(QSV_TOTPHYSMEM, QSV_TOTPHYSMEM, &buf, sizeof(buf));
  11.    printf("%u bytes\n", *((unsigned *) buf));
  12.    printf("return code rc=%d\n",rc);
  13. }
  14.