Import ezmlm 0.53
[ezmlm] / substdio_copy.3
CommitLineData
5b62e993
MW
1.TH substdio_copy 3
2.SH NAME
3substdio_copy \- copy an entire input to an output
4.SH SYNTAX
5.B #include <substdio.h>
6
7int \fBsubstdio_copy\fP(&\fIsout\fR,&\fIsin\fR);
8
9substdio \fIsout\fR;
10.br
11substdio \fIsin\fR;
12.SH DESCRIPTION
13.B substdio_copy
14reads characters from
15.I sin
16until end of file,
17writing each character to
18.IR sout .
19It then returns 0.
20It does not flush
21.IR sout .
22
23Upon a
24.I sin
25error,
26.B substdio_copy
27returns -2,
28leaving
29.B errno
30set appropriately.
31
32Upon a
33.I sout
34error,
35.B substdio_copy
36returns -3,
37leaving
38.B errno
39set appropriately.
40.SH "SEE ALSO"
41substdio(3)