PUTS(3S)	    UNIX Programmer's Manual		 PUTS(3S)


NAME
     puts, fputs - put a string on a stream

SYNOPSIS
     #include <stdio.h>

     puts(s)
     char *s;

     fputs(s, stream)
     char *s;
     FILE *stream;

DESCRIPTION
     Puts copies the null-terminated string s to the standard
     output stream stdout and appends a newline character.

     Fputs copies the null-terminated string s to the named out-
     put stream.

     Neither routine copies the terminal null character.

SEE ALSO
     fopen(3S), gets(3S), putc(3S), printf(3S), ferror(3S)
     fread(3S) for fwrite

BUGS
     Puts appends a newline, fputs does not, all in the name of
     backward compatibility.


Printed 11/26/99	  May 15, 1985				1


 
Generated: 2016-12-26
Generated by man2html V0.25
page hit count: 1531
Valid CSS Valid XHTML 1.0 Strict