Last modified on 14 June 2009, at 16:26
#include <cstdio> char *gets( char *str );
The gets() function reads characters from stdin and loads them into str, until a newline or EOF is reached. The newline character is translated into a null termination. The return value of gets() is the read-in string, or NULL if there is an error.