home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_07_05 / v7n5042a.txt < prev    next >
Text File  |  1989-04-18  |  805b  |  22 lines

  1. /*
  2. Interface to serial communications module
  3. */
  4.  
  5. #define BOOLEAN int
  6. #define TRUE 1
  7. #define FALSE 0
  8.  
  9. BOOLEAN sc_open();    /*    returns TRUE if device was opened, FALSE
  10.                             if device could not be opened */
  11. void sc_close();      /*    close the device */
  12. BOOLEAN sc_dial();    /*    returns TRUE if CONNECTed to the remote
  13.                             system */
  14. void sc_hangup();
  15. BOOLEAN sc_read();    /*    returns TRUE if pattern was found, FALSE
  16.                             if time ran out */
  17. void sc_write();
  18. void sc_cleanup();    /*    resets link port back to original
  19.                             configuration, should be called from
  20.                             the application before exiting if
  21.                             sc_close will not be called */
  22.