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

  1. #include <stdio.h>
  2. #include "pxengine.h"
  3.  
  4. #define TABLENAME        "table"
  5.  
  6. int main(void)
  7. {
  8.     RECORDHANDLE recHandle;
  9.     TABLEHANDLE tblHandle;
  10.     int pxErr;
  11.  
  12.     PXInit();
  13.     PXTblOpen(TABLENAME, &tblHandle, 0, 0);
  14.     PXRecBufOpen(tblHandle, &recHandle);
  15.  
  16.     /* Close a record buffer */
  17.     if ((pxErr = PXRecBufClose(recHandle)) != PXSUCCESS)
  18.         printf("%s\n", PXErrMsg(pxErr));
  19.  
  20.     PXTblClose(tblHandle);
  21.     PXExit();
  22.     return(pxErr);
  23. }
  24.