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 >
Wrap
Text File
|
1989-04-18
|
805b
|
22 lines
/*
Interface to serial communications module
*/
#define BOOLEAN int
#define TRUE 1
#define FALSE 0
BOOLEAN sc_open(); /* returns TRUE if device was opened, FALSE
if device could not be opened */
void sc_close(); /* close the device */
BOOLEAN sc_dial(); /* returns TRUE if CONNECTed to the remote
system */
void sc_hangup();
BOOLEAN sc_read(); /* returns TRUE if pattern was found, FALSE
if time ran out */
void sc_write();
void sc_cleanup(); /* resets link port back to original
configuration, should be called from
the application before exiting if
sc_close will not be called */