home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / misc / smc203.ark / OUT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1983-07-28  |  384 b   |  21 lines

  1. #define ERRCODE    7    /* op sys return code */
  2.  
  3. cout(c, fd) char c; int fd; {
  4.   if(fputc(c, fd)==EOF) xout();
  5.   }
  6.  
  7. sout(string, fd) char *string; int fd; {
  8.   if(fputs(string, fd)==EOF) xout();
  9.   }
  10.  
  11. lout(line, fd) char *line; int fd; {
  12.   sout(line, fd);
  13.   cout('\n', fd);
  14.   }
  15.  
  16. xout() {
  17.   fputs("output error\n", stderr);
  18.   abort(ERRCODE);
  19.   }
  20.  
  21.