Don't call ReadArgs() if started from WB.
[tangerine.git] / compiler / alib / sprintf.c
blob37cac1915e8343a0a0b7b281f06a4be75cf2a047
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/exec.h>
7 #include <aros/asmcall.h>
9 /* Putchar procedure needed by RawDoFmt() */
10 AROS_UFH2(void, __putChr,
11 AROS_UFHA(UBYTE , chr, D0),
12 AROS_UFHA(STRPTR *, p , A3))
14 AROS_USERFUNC_INIT
15 *(*p)++ = chr;
16 AROS_USERFUNC_EXIT
20 /*****************************************************************************
22 NAME */
23 #include <proto/alib.h>
25 VOID __sprintf(
27 /* SYNOPSIS */
28 UBYTE *buffer, UBYTE *format, ...)
30 /* FUNCTION
31 Print a formatted string to a buffer.
33 INPUTS
34 buffer -- the buffer to fill
35 format -- the format string, see the RawDoFmt() documentation for
36 information on which formatting commands there are
38 RESULT
40 NOTES
41 This routines needs access to SysBase, which makes it impossible to
42 use from libraries. For user programs, though, it is possible to
43 use it as SysBase is set up in startup.c.
45 EXAMPLE
47 BUGS
49 SEE ALSO
50 exec.library/RawDoFmt()
52 INTERNALS
54 HISTORY
55 07.01.2000 SDuvan implemented
57 *****************************************************************************/
59 AROS_GET_SYSBASE_OK
60 RawDoFmt(format, &format+1, (VOID_FUNC)__putChr, &buffer);
61 } /* sprintf */