.TH fputs() "" "" "STDIO Function (libc)"
.PC "Write string into file stream"
\fB#include <stdio.h>\fR
\fBint fputs(\fIstring\^\fB, \fIfp\^\fB)
char *\fIstring\^\fB; FILE *\fIfp\^\fB;\fR
.PP
.B fputs()
writes
.I string
into the file stream pointed to by
.IR fp .
Unlike its cousin
.BR puts() ,
it does not append a newline character to the end of
.IR string .
.PP
.B fputs()
returns a nonnegative value on success and
.B EOF
if a write error occurs.
.SH Example
For an example of this function, see the entry for \fBfreopen()\fR.
.SH "See Also"
.Xr "libc," libc
.Xr "puts()" puts
.br
\*(AS, \(sc7.9.7.4
.br
\*(PX Standard, \(sc8.1
