November 1985
National Instruments
refin)
short refin;
long count, pause;
char *text:
Read any bytes waiting at the modem port
get count
if (count
text =
count):
get another buffer
if text ==
input size too large for memory");
return:
of bytes at input port=
count);
refin,
read input port buffer");
return;
write text to screen
1, text,
pause;)
bytes at input port.");
txt)
char *txt;
register long pause:
=
2,
hr.
pause;)
131
APPENDIX I SERIAL PORT
PROGRAM