Namespaces
Variants
Views
Actions

fputs

From cppreference.com
< c‎ | io
Revision as of 15:22, 1 July 2013 by P12bot (Talk | contribs)

Defined in header <stdio.h>
int fputs( const char          *str, FILE          *stream );
(until C99)
int fputs( const char *restrict str, FILE *restrict stream );
(since C99)

Writes given null-terminated character string to the given output stream.

Parameters

str - null-terminated character string to be written
stream - output stream

Return value

non-negative integer on success, EOF on failure

See also

prints formatted output to stdout, a file stream or a buffer
(function) [edit]
writes a character string to stdout
(function) [edit]
gets a character string from a file stream
(function) [edit]