Table of Contents Previous topic Next topic
C LIBRARY FUNCTIONS->Detailed Descriptions->gets()
int gets(char* string); Read a line from stdin
string Pointer to the character array to receive the input
This function reads the next line from the standard input stdin into array pointed to by string. The terminating newline character is replaced with '\0'.
The function returns string or NULL if an error occurred.