DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

gets(C)


gets -- get a string from the standard input

Syntax

gets [ string ]

Description

The gets command can be used with csh(C) to read a string from the standard input. If string is given it is used as a default value if an error occurs. The resulting string (either string or as read from the standard input) is written to the standard output. If no string is given and an error occurs, gets exits with exit status 1.

See also

line(C), csh(C)

Standards conformance

gets is not part of any currently supported standard; it is an extension of AT&T System V provided by The Santa Cruz Operation, Inc.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003