Files
oldlinux-files/Minix/2.0.0/wwwman/man3/fputs.3.html
2024-02-19 00:21:39 -05:00

72 lines
1.5 KiB
HTML

<HTML>
<HEAD>
<TITLE>puts(3)</TITLE>
</HEAD>
<BODY>
<H1>puts(3)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
puts, fputs - put a string on a stream
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>#include</STRONG> <STRONG>&lt;stdio.h&gt;</STRONG>
<STRONG>int</STRONG> <STRONG>puts(char</STRONG> <STRONG>*</STRONG><EM>s</EM><STRONG>)</STRONG>
<STRONG>int</STRONG> <STRONG>fputs(char</STRONG> <STRONG>*</STRONG><EM>s</EM><STRONG>,</STRONG> <STRONG>FILE</STRONG> <STRONG>*</STRONG><EM>stream</EM><STRONG>)</STRONG>
</PRE>
<H2>DESCRIPTION</H2><PRE>
<STRONG>Puts</STRONG> copies the null-terminated string <EM>s</EM> to the standard output stream
<STRONG>stdout</STRONG> and appends a newline character.
<STRONG>Fputs</STRONG> copies the null-terminated string <EM>s</EM> to the named output <EM>stream</EM>.
Neither routine copies the terminal null character.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man3/fopen.3.html">fopen(3)</A></STRONG>, <STRONG><A HREF="../man3/gets.3.html">gets(3)</A></STRONG>, <STRONG><A HREF="../man3/putc.3.html">putc(3)</A></STRONG>, <STRONG><A HREF="../man3/printf.3.html">printf(3)</A></STRONG>, <STRONG><A HREF="../man3/ferror.3.html">ferror(3)</A></STRONG>, <STRONG><A HREF="../man3/fread.3.html">fread(3)</A></STRONG>.
</PRE>
<H2>BUGS</H2><PRE>
<STRONG>Puts</STRONG> appends a newline, <STRONG>fputs</STRONG> does not, all in the name of backward
compatibility.
</PRE>
</BODY>
</HTML>