home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/stdio/c/RCS/puts,v $
- * $Date: 1996/04/19 21:32:42 $
- * $Revision: 1.1 $
- * $State: Rel $
- * $Author: simon $
- *
- * $Log: puts,v $
- * Revision 1.1 1996/04/19 21:32:42 simon
- * Initial revision
- *
- ***************************************************************************/
-
- static const char rcs_id[] = "$Id: puts,v 1.1 1996/04/19 21:32:42 simon Rel $";
-
- #include <stdio.h>
-
- __STDIOLIB__
-
- int
- puts (register const char *s)
- {
- register FILE *f = stdout;
- register int c = 0;
-
- if (!s)
- s = (const char *) __null;
-
- while (c = *s++)
- if ((c = putc (c, f)) < 0)
- break;
-
- return ((c < 0) ? c : putc ('\n', f));
- }
-