Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/io/c/puts"

From cppreference.com
< cpp‎ | io‎ | c
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

 
 
 
C-style I/O
Types and objects
Functions
File access
Direct input/output
Unformatted input/output
Formatted input
(C++11)(C++11)(C++11)    
(C++11)(C++11)(C++11)    
 
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) [edit]
prints formatted output to stdout, a file stream or a buffer
(function) [edit]