-
Notifications
You must be signed in to change notification settings - Fork 2
_gets
bergsma edited this page Sep 26, 2014
·
3 revisions
#gets
###Get string data from stdin.
Syntax
result = gets ( prompt ) ;
Arguments
- str prompt
the prompt (echoed to stdout).
Return Value
string result
- string : The next line from the file.
The STATUS variable is set to $ACKNOWLEDGE
- NULLstring : At the end of stdin, the result is "".
The STATUS variable is set to %EOF
Warnings
- %EOF : At the end of stdin, the result is "".
Exceptions
- %ARGUMENT: Invalid arguments. Usage: result = gets ( prompt ) ;
Description
- None
Examples
puts "Create an example for the function 'gets'" ;
Related Links
None