2 Copyright © 1995-2016, 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()
45 *****************************************************************************/
48 /* Special case for m68k, so that we are AmigaOS 1.x/2.x compliant
49 * New programs should be using snprintf() from stdc.library
51 RawDoFmt(format
, &format
+1, (VOID_FUNC
)&m68k_string_sprintf
, buffer
);
55 va_start(args
, format
);
56 VNewRawDoFmt(format
, RAWFMTFUNC_STRING
, buffer
, args
);