GETS(3S) — Unix Programmer’s Manual
NAME
gets, fgets − get a string from a stream
SYNOPSIS
#include <stdio.h>
char ∗gets(s)
char ∗s;
char ∗fgets(s, n, stream)
char ∗s;
FILE ∗stream;
DESCRIPTION
Gets reads a string into s from the standard input stream stdin. The string is terminated by a newline character, which is replaced in s by a null character. Gets returns its argument.
INTEGRATED SOLUTIONS 4.2 BSD — 1 August 1985