home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sa104os2.zip / SATHR104.ZIP / SATHER / SYSTEM / ERR.C < prev    next >
C/C++ Source or Header  |  1994-12-22  |  460b  |  17 lines

  1. /* C_err.c
  2. C code for Sather 1.0 library external class C_ERR */
  3.  
  4. #include <stdio.h>
  5.  
  6. /* Print the character `c' on stderr. */
  7. void c_err_char(char c){putc(c,stderr);}
  8.  
  9. /* Print the string `s' on stderr. */
  10. void c_err_str(char *s){fputs(s,stderr);}
  11.  
  12. /* Flush output buffer.  Probably not necessary. */
  13. void c_err_flush(){fflush(stderr);}
  14.  
  15. /* Print `n' characters of the string `s' on stderr. */
  16. void c_err_nstr(int n,char *s){fwrite(s,sizeof(char),n,stderr);}
  17.