up | Inhaltsverzeichniss | Kommentar

Manual page for PUTS(3S)

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() writes the null-terminated string pointed to by s, followed by a NEWLINE character, to the standard output stream stdout.

fputs() writes the null-terminated string pointed to by s to the named output stream.

Neither function writes the terminal null character.

DIAGNOSTICS

Both routines return EOF on error. This will happen if the routines try to write on a file that has not been opened for writing.

NOTES

puts() appends a NEWLINE while fputs() does not.

SEE ALSO

ferror.3v fopen.3v fread.3s printf.3v putc.3s


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97