2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 ANSI C function fputc().
10 #include <dos/dosextens.h>
11 #include <proto/exec.h>
12 #include <proto/dos.h>
16 /*****************************************************************************
28 Write one character to the specified stream.
31 c - The character to output
32 stream - The character is written to this stream
35 The character written or EOF on error.
47 ******************************************************************************/
49 fdesc
*fdesc
= __getfdesc(stream
->fd
);
57 if (FPutC((BPTR
)fdesc
->fcb
->fh
, c
) == EOF
)
59 errno
= __arosc_ioerr2errno(IoErr());