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
fputs (String str, Stream stream) yoix.stdio
 
Copies characters from str, up to but not including the first null, to stream and returns the number of characters written or -1 if there was an error.
 
 Example:   The simple program,
import yoix.stdio.*;

String  line[100];

while (fgets(line, 100, stdin) != NULL)
    fputs(line, stdout);
copies lines from standard input to standard output, and stops at the end-of-stream.
 
 Return:   int
 
 See Also:   fgets, fprintf, gets, puts

 

Yoix is a registered trademark of AT&T Inc.