Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gets(3S) — 4.2BSD 3.04v10.B

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026