home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include "pxengine.h"
-
- #define TABLENAME "table"
-
- int main(void)
- {
- int pxErr;
- int Exist;
-
- PXInit();
-
- /* See if table exists */
- if ((pxErr = PXTblExist(TABLENAME, &Exist)) != PXSUCCESS)
- printf("%s\n", PXErrMsg(pxErr));
- else
- if (Exist)
- printf("Table exists\n");
- else
- printf("Table does not exist\n");
-
- PXExit();
- return(pxErr);
- }