Gets a string of characters from stdin and stores them in an array.
#include <stdio.h> char *gets ( char *buf);
(OUT) Points to the array into which the characters are to be stored.
If successful, returns buf. Otherwise, returns a NULL pointer. If the stream is at end-of-file, gets also sets the end-of-file indicator for the stream. If a read error occurs, gets also sets errno to one of the following:
The gets function gets a string of characters from the file designated by stdin and stores them in the array pointed to by buf until a newline character is read or an end-of-file condition is encountered. Any newline character is discarded, and a null-terminating character is placed immediately after the last character read into the array.