DESCRIPTION
gets
reads a line from stdin into the buffer pointed to by s until either a terminating newline or
EOF, which it replaces with '\0'. No check for buffer overrun is performed (see BUGS below).
BUGS
Because it is impossible to tell without knowing the data in advance how many characters gets()
will
read, and because gets()
will continue to store characters past the end of the buffer, it is
extremely dangerous to use. It has been used to break computer security. Use fgets()
instead.