| 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.
|