home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / alde_c / misc / lib / jplc2 / eputs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-07-22  |  737 b   |  26 lines

  1. /* 1.0  12-10-84 */
  2. /************************************************************************
  3.  *            Robert C. Tausworthe                *
  4.  *            Jet Propulsion Laboratory            *
  5.  *            Pasadena, CA 91009        1984        *
  6.  ************************************************************************/
  7.  
  8. #include "defs.h"
  9. #include "stdtyp.h"
  10. #include "stdio.h"
  11.  
  12. /************************************************************************/
  13.     METACHAR
  14. eputs(s)        /* Put the string s, followed by newline, to the
  15.                stderr device. Return newline if ok, or
  16.                EOF if not.                    */
  17. /*----------------------------------------------------------------------*/
  18. FAST STRING s;
  19. {
  20.     while (*s)
  21.         if (eputc(*s++) IS EOF)
  22.             return EOF;
  23.  
  24.     return eputc('\n');
  25. }
  26.