home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
unix
/
unixlib36d
/
src
/
stdio
/
c
/
puts
< prev
next >
Wrap
Text File
|
1994-03-08
|
374b
|
24 lines
static char sccs_id[] = "@(#) puts.c 1.1 " __DATE__ " HJR";
/* puts.c (c) Copyright 1990 H.Rogers */
#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));
}