Make all bucket and overflow addresses unsigned
[unix-history] / usr / src / lib / libc / stdio / fputs.3
.\" Copyright (c) 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" Chris Torek.
.\"
.\" %sccs.include.redist.man%
.\"
.\" @(#)fputs.3 6.3 (Berkeley) %G%
.\"
.TH FPUTS 3 ""
.UC 7
.SH NAME
fputs, puts \- put a line to a stream
.SH SYNOPSIS
.nf
.ft B
#include <stdio.h>
int
fputs(char *str, FILE *stream);
int
puts(char *str);
.ft R
.fi
.SH DESCRIPTION
.I Fputs
writes the string
.I str
to the given
.IR stream .
.PP
.I Puts
writes the string
.I str
to the standard output stream
.BR stdout ,
appending a newline character.
.SH "RETURN VALUE"
.I Fputs
returns 0 on success,
.B EOF
on error;
.I puts
returns a nonnegative integer on success,
.B EOF
on error.
.SH "SEE ALSO"
putc(3), ferror(3), stdio(3)
.SH ERRORS
.TP 15
[EBADF]
.I Stream
is not a writable stream.
.PP
.I Fputs
and
.I puts
may also fail and set
.I errno
for any of the errors specified for the routines
.IR write (2).
.SH STANDARDS
.I Fputs
and
.I puts
conform to ANSI X3.159-1989 (``ANSI C'').