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

  1. #include <stdio.h>
  2. #include "pxengine.h"
  3.  
  4. #define NETDIR          ""
  5. #define NETTYPE         NOTONNET
  6.  
  7. int main(void)
  8. {
  9.     int pxErr;
  10.  
  11.     /* Attempt to initialize Engine */
  12.     if ((pxErr = PXNetInit(NETDIR,NETTYPE,DEFUSERNAME)) 
  13.     != PXSUCCESS)
  14.         printf("%s\n", PXErrMsg(pxErr));
  15.     else
  16.         PXExit();
  17.     
  18.     return(pxErr);
  19. }
  20.