2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Format a string and call a usercallback to output each char.
7 /* Original source from libnix */
10 #include <proto/dos.h>
15 static int __putc(int c
, BPTR fh
);
17 /*****************************************************************************
31 Format a list of arguments and print them on the specified stream.
34 stream - A stream on which one can write
35 format - A printf() format string.
36 args - A list of arguments for the format string.
39 The number of characters written.
51 ******************************************************************************/
53 fdesc
*fdesc
= __getfdesc(stream
->fd
);
61 return __vcformat (fdesc
->fh
, __putc
, format
, args
);
65 static int __putc(int c
, BPTR fh
)
69 if (FPutC(fh
, c
) == EOF
)
71 errno
= IoErr2errno(IoErr());