Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_FS_1_19910112 - c/lib/stdio/puts.c
There are 7 other files named puts.c in the archive. Click here to see a list.
/*
 *	PUTS - write a string to stdio
 *
 *	Copyright (c) 1986 by Ian Macky, SRI International
 */

#include <stdio.h>

#if __STDC__
#define CONST const
#else
#define CONST
#endif

int puts(s)
CONST char *s;
{
    if (!_writeable(stdout)) return EOF;
    else return (fputs(s, stdout) != EOF) ? putc('\n', stdout) : EOF;
}