Gets a string from stdin.
char * gets (char * string);
Required Header |
<stdio.h> |
Return Value
This function returns a string from stdin or NULL if an error or End Of File has been reached.
Parameters
string
A pointer to the buffer which will contain the result
Remarks
The gets function reads stdin up until the next newline character and stores the result in string, replacing the newline with a null-terminator character.
See Also fputc, fgetc, fgets, _fgetchar, fread, getc, getchar