AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
gets (String buf) yoix.stdio
 
Reads characters from standard input stream stdin up to the next newline character, which is discarded, and stores them in buf. gets terminates buf with a null character and returns buf, or NULL when end-of-stream is reached or an error occurs.
 
 Example:   The program,
import yoix.stdio.*;

String  line[100, ...];

while (gets(line) != NULL)
    puts(line);
copies newline terminated lines from standard input to standard output, and stops at the end-of-stream.
 
 Return:   String
 
 See Also:   fgets, fprintf, fputs, getc, getchar

 

Yoix is a registered trademark of AT&T Inc.