2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
6 #include <exec/rawfmt.h>
7 #include <proto/exec.h>
11 const ULONG m68k_string_sprintf
= 0x16c04e75;
14 /*****************************************************************************
17 #include <proto/alib.h>
22 UBYTE
*buffer
, const UBYTE
*format
, ...)
25 Print a formatted string to a buffer.
28 buffer -- the buffer to fill
29 format -- the format string, see the VNewRawDoFmt() documentation for
30 information on which formatting commands there are
41 exec.library/VNewRawDoFmt()
46 07.01.2000 SDuvan implemented
48 *****************************************************************************/
51 /* Special case for m68k, so that we are AmigaOS 1.x/2.x compliant
52 * New programs should be using snprintf() from arosc.library
54 RawDoFmt(format
, &format
+1, (VOID_FUNC
)&m68k_string_sprintf
, buffer
);
58 va_start(args
, format
);
59 VNewRawDoFmt(format
, RAWFMTFUNC_STRING
, buffer
, args
);