gets

     

gets is a function in the C stanard library, declared in the header file stdio.h, that reads a line from the standard input and stores it in a buffer provided by the caller. It might be implemented as follows (using getchar):