std::puts - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::puts

From cppreference.com
< cpp‎ | io‎ | c

Defined in header `<cstdio>` |  |
int puts( const char *str ); |  |

Writes character string `str` and a newline to `stdout`

### [edit] Parameters

str | - | character string to be written

### [edit] Return value

Non-negative number on success or EOF otherwise

### [edit] See also

fputs | writes a character string to a file stream (function) [edit]
printffprintfsprintfsnprintf (C++11) | prints formatted output to stdout, a file stream or a buffer (function) [edit]
C documentation for puts

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/io/c/puts&oldid=65175"