home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / s / s001 / 1.ddi / TS / SRC / CREADW.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-23  |  520 b   |  22 lines

  1.                 /******************************************
  2.            *            CREADW.C             *
  3.                * Copyright TimeSlice, Inc. 1985, 86, 87. *
  4.                ******************************************/
  5.  
  6. #include <ts.h>
  7.  
  8. /********
  9. * CREADW( CN , BUF , NBYTES )
  10. * Does just as cread(), but keeps trying until it suceeds. It does not
  11. * return any value.
  12. ********/
  13. void _creadw( cn , status, buf , nbytes )
  14. CHAN *cn;
  15. int status;
  16. char *buf;
  17. int nbytes;
  18. {
  19.   while( ! _cread( cn , status, buf , nbytes ) )
  20.     guc();
  21. }
  22.