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.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005