BSD 2 development
[unix-history] / man / gets.u
CommitLineData
70e18513
BJ
1.TH GETS UCB 2/24/79 UCB
2.SH NAME
3gets \- get a string from standard input
4.SH SYNOPSIS
5.B gets
6[ default ]
7.SH DESCRIPTION
8.I Gets
9can be used with
10.IR csh (UCB)
11to read a string from the standard input.
12If a
13.I default
14is given it is used if an error occurs.
15The resultant string (either the default or as read from the standard
16input is written to the standard output.
17If no
18.I default
19is given and an error occurs,
20.I gets
21exits with exit status 1.
22.SH "SEE ALSO"
23csh (UCB)
24.SH BUGS