1 #include <aros/kernel.h>
2 #include <aros/libcall.h>
7 /*****************************************************************************
10 #include <proto/kernel.h>
12 AROS_LH3(int, KrnFormatStr
,
15 AROS_LHA(void *, putch
, A0
),
16 AROS_LHA(const char *, format
, A1
),
17 AROS_LHA(va_list, args
, A2
),
20 APTR
, KernelBase
, 30, Kernel
)
23 Format a string using C printf() convention, using 'putch'
24 as character output function.
27 putch - A pointer to the output function
28 format - A format string
29 args - A list of arguments
31 A character output function needs to be declared as:
33 int myPutCh(int char, void *KernelBase)
35 It is expected to return 1 on success and 0 on failure.
38 Number of succesfully printed characters
50 ******************************************************************************/
54 return __vcformat(KernelBase
, putch
, format
, args
);