2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <aros/kernel.h>
9 #include <aros/libcall.h>
14 /*****************************************************************************
17 #include <proto/kernel.h>
19 AROS_LH3(int, KrnFormatStr
,
22 AROS_LHA(void *, putch
, A0
),
23 AROS_LHA(const char *, format
, A1
),
24 AROS_LHA(va_list, args
, A2
),
27 APTR
, KernelBase
, 30, Kernel
)
30 Format a string using C printf() convention, using 'putch'
31 as character output function.
34 putch - A pointer to the output function
35 format - A format string
36 args - A list of arguments
38 A character output function needs to be declared as:
40 int myPutCh(int char, void *KernelBase)
42 It is expected to return 1 on success and 0 on failure.
45 Number of succesfully printed characters
57 ******************************************************************************/
61 return __vcformat(KernelBase
, putch
, format
, args
);