Added a test for MUIA_Listview_SelectChange.
[AROS.git] / rom / kernel / formatstr.c
blob861496f2ce171c452eca598ca6e9cd48077f2368
1 /*
2 Copyright © 1995-2016, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 #include <aros/kernel.h>
9 #include <aros/libcall.h>
11 #include <stdarg.h>
12 #include <stdio.h>
14 /*****************************************************************************
16 NAME */
17 #include <proto/kernel.h>
19 AROS_LH3(int, KrnFormatStr,
21 /* SYNOPSIS */
22 AROS_LHA(void *, putch, A0),
23 AROS_LHA(const char *, format, A1),
24 AROS_LHA(va_list, args, A2),
26 /* LOCATION */
27 APTR, KernelBase, 30, Kernel)
29 /* FUNCTION
30 Format a string using C printf() convention, using 'putch'
31 as character output function.
33 INPUTS
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.
44 RESULT
45 Number of successfully printed characters
47 NOTES
49 EXAMPLE
51 BUGS
53 SEE ALSO
55 INTERNALS
57 ******************************************************************************/
59 AROS_LIBFUNC_INIT
61 return __vcformat(KernelBase, putch, format, args);
63 AROS_LIBFUNC_EXIT