home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a007 / 1.ddi / TBLEMPTY.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-15  |  384 b   |  23 lines

  1. /* The SETUP.C program must be compiled and run before this example */
  2. /* can be executed. */
  3.  
  4. #include <stdio.h>
  5. #include "pxengine.h"
  6.  
  7. #define TABLENAME  "numbers"
  8.  
  9. int main(void)
  10. {
  11.   PXCODE pxErr;
  12.  
  13.   PXInit();
  14.  
  15.   /* Empty the table. */
  16.  
  17.   if ((pxErr = PXTblEmpty(TABLENAME)) != PXSUCCESS)
  18.     printf("%s\n", PXErrMsg(pxErr));
  19.  
  20.   PXExit();
  21.   return(pxErr);
  22. }
  23.