Namespaces
Variants
Views
Actions

fputs

From cppreference.com
< c‎ | io
Revision as of 13:31, 10 April 2013 by P12 (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <stdio.h>
</td>

<td></td> <td></td> <tr class="t-dcl ">

<td >
int fputs( const char          *str, FILE          *stream );
</td>

<td class="t-dcl-nopad"> </td> <td > (until C99) </td> </tr> <tr class="t-dcl ">

<td >
int fputs( const char *restrict str, FILE *restrict stream );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C99) </td> </tr> Template:ddcl list end

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

Template:c/io/dcl list fprintfTemplate:c/io/dcl list putsTemplate:c/io/dcl list fgets