home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a006 / 2.ddi / CEXAM.ZIP / SETDEF.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-11  |  623 b   |  21 lines

  1. #include <stdio.h>
  2. #include "pxengine.h"
  3.  
  4. main(void)
  5. {
  6.      int pxErr;
  7.  
  8.      /* Prepare Engine for initialization using maximum buffer
  9.         size, maximum  allowable number of tables, locks and
  10.         files.  Leave maxRecBufs and sortOrder at their present
  11.         value. */
  12.     if ((pxErr = PXSetDefaults(MAXSWAPSIZE,MAXTABLEHANDLES,PXDEFAULT,
  13.                                MAXLOCKHANDLES,MAXFILEHANDLES,
  14.                                PXDEFAULT)) != PXSUCCESS)
  15.         printf("%s\n",PXErrMsg(pxErr));
  16.  
  17.     /* Call PXInit with new default values */
  18.     PXInit();
  19.     PXExit();
  20.     return(pxErr);
  21. }