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

  1. #include <stdio.h>
  2. #include "pxengine.h"
  3.  
  4. #define PASSWORD        "password"
  5. #define TABLENAME       "table"
  6.  
  7. int main(void)
  8. {
  9.     int pxErr;
  10.  
  11.     PXInit();
  12.  
  13.     /* Encrypt table with password */
  14.     if ((pxErr = PXTblEncrypt(TABLENAME, PASSWORD)) != PXSUCCESS)
  15.         printf("%s\n", PXErrMsg(pxErr));
  16.  
  17.     PXExit();
  18.     return(pxErr);
  19. }
  20.