FGETS(3) BSD Library Functions Manual FGETS(3)
NAME
fgets, gets -- get a line from a stream
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <stdio.h>
char *
fgets(char * restrict str, int size, FILE * restrict stream);
char *
gets(char *str);
DESCRIPTION
The fgets() function reads at most one less than the number of characters specified by size from the given stream and stores them in the
string str. Reading stops when a newline character is found, at end-of-file or error. The newline, if any, is retained. If any characters
are read and there is no error, a '