SysTutorials

Man Pages › Section 3

gets(3)

NAME

gets – get a string from standard input (DEPRECATED)

SYNOPSIS


#include <stdio.h>
char *gets(char *s);

DESCRIPTION

Never use this function.

gets() reads a line from stdin into the buffer pointed to by s until either a terminating newline or EOF, which it replaces with a null byte (‘