aboutsummaryrefslogtreecommitdiff
path: root/sys/libc/puts.c
blob: 246b7bf694ccd9fcd5b81954e9ee11dfa590cf16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/

#define	import_spp
#define	import_libc
#define	import_stdio
#include <iraf.h>


/* PUTS -- Put a null terminated string to the standard output, followed by a
** newline.
*/
int
puts (
  char	*str			/* input string			*/
)
{
	register FILE	*fp = stdout;
	register char	*ip;


	for (ip=str;  *ip != EOS;  ip++)
	    putc (*ip, fp);
	return (putc ('\n', fp));
}