| Defined in header |
char* gets( char* str );
| (deprecated in C++11) |
(removed in C++14)
stdin into given character string until a newline character is found or end-of-file occurs.
|str||-||character string to be written|
str on success,
NULL on failure.
If the failure has been caused by end of file condition, additionally sets the eof indicator (see
stdin. If the failure has been caused by some other error, sets the error indicator (see
The function provides no means to prevent buffer overflow of the destination array, given sufficiently long input string.
std::gets was deprecated in C++11 and removed from C++14.
std::fgets can be used instead.
| reads formatted input from
| gets a character string from a file stream
| writes a character string to a file stream
| C documentation for
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.