boot.library is no more, *.handler to *-handler.
[AROS.git] / compiler / alib / sprintf.c
blob2bc9890c1b8263b0c3bb2eefb05539a8a0393991
1 /*
2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <exec/rawfmt.h>
7 #include <proto/exec.h>
8 #include <stdarg.h>
10 /*****************************************************************************
12 NAME */
13 #include <proto/alib.h>
15 VOID __sprintf(
17 /* SYNOPSIS */
18 UBYTE *buffer, const UBYTE *format, ...)
20 /* FUNCTION
21 Print a formatted string to a buffer.
23 INPUTS
24 buffer -- the buffer to fill
25 format -- the format string, see the VNewRawDoFmt() documentation for
26 information on which formatting commands there are
28 RESULT
30 NOTES
32 EXAMPLE
34 BUGS
36 SEE ALSO
37 exec.library/VNewRawDoFmt()
39 INTERNALS
41 HISTORY
42 07.01.2000 SDuvan implemented
44 *****************************************************************************/
46 va_list args;
48 va_start(args, format);
49 VNewRawDoFmt(format, RAWFMTFUNC_STRING, buffer, args);
50 va_end(args);
51 } /* sprintf */