Difference between revisions of "cpp/io/c/puts"
From cppreference.com
m (Update links.) |
(added const) |
||
Line 2: | Line 2: | ||
{{cpp/io/c/navbar}} | {{cpp/io/c/navbar}} | ||
{{ddcl | header=cstdio | | {{ddcl | header=cstdio | | ||
− | int puts( char *str ); | + | int puts( const char *str ); |
}} | }} | ||
Writes character string {{tt|str}} and a newline to {{tt|stdout}} | Writes character string {{tt|str}} and a newline to {{tt|stdout}} |
Revision as of 07:08, 4 September 2013
Defined in header <cstdio>
|
||
int puts( const char *str ); |
||
Writes character string str
and a newline to stdout
Parameters
str | - | character string to be written |
Return value
Non-negative number on success or EOF otherwise
See also
writes a character string to a file stream (function) | |
(C++11) |
prints formatted output to stdout, a file stream or a buffer (function) |
C documentation for puts
|