home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include "pxengine.h"
-
- #define PASSWORD "password"
- #define TABLENAME "table"
-
- int main(void)
- {
- int pxErr;
-
- PXInit();
-
- /* Encrypt table with password */
- if ((pxErr = PXTblEncrypt(TABLENAME, PASSWORD)) != PXSUCCESS)
- printf("%s\n", PXErrMsg(pxErr));
-
- PXExit();
- return(pxErr);
- }