Skip to content

substdio_copy.3

Manvendra Bhangui edited this page Feb 25, 2024 · 4 revisions

NAME

substdio_copy - copy an entire input to output

SYNTAX

#include <substdio.h>

int substdio_copy(&sout, &sin);

substdio sout;
substdio sin;

DESCRIPTION

substdio_copy reads characters from sin until end of file, writing each character to sout. It then returns 0. It does not flush sout.

Upon a sin error, substdio_copy returns -2, leaving errno set appropriately.

Upon a sout error, substdio_copy returns -3, leaving errno set appropriately.

SEE ALSO

substdio(3)

Clone this wiki locally