Last change
on this file since 5087 was 1678, checked in by bird, 26 years ago |
Some bugsfixes - Yield is disabled.
Added parameters.
Correcte moduleheaders.
Introduced a new base class for virtual lx modules + some elf sketches.
|
File size:
727 bytes
|
Line | |
---|
1 | /* $Id: sprintf.h,v 1.2 1999-11-10 01:45:33 bird Exp $
|
---|
2 | *
|
---|
3 | * sprintf/vsprintf header file.
|
---|
4 | *
|
---|
5 | * Copyright (c) 1999 knut st. osmundsen
|
---|
6 | *
|
---|
7 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
8 | *
|
---|
9 | */
|
---|
10 |
|
---|
11 | #ifndef _sprintf_h_
|
---|
12 | #define _sprintf_h_
|
---|
13 |
|
---|
14 | #ifdef __cplusplus
|
---|
15 | extern "C" {
|
---|
16 | #endif
|
---|
17 |
|
---|
18 | #ifndef va_arg
|
---|
19 | #error "must include stdarg.h"
|
---|
20 | #endif
|
---|
21 |
|
---|
22 |
|
---|
23 | /*
|
---|
24 | * Function prototypes
|
---|
25 | */
|
---|
26 | int sprintf(char *pszBuffer, const char *pszFormat, ...);
|
---|
27 | int vsprintf(char *pszBuffer, const char *pszFormat, va_list args);
|
---|
28 |
|
---|
29 | /*
|
---|
30 | * va_start have to be redeclared. Compiler don't accept SSToDS() as va_start argument.
|
---|
31 | */
|
---|
32 | #undef va_start
|
---|
33 | #define va_start(ap, last) ap = ((va_list)SSToDS(&last)) + __nextword(last)
|
---|
34 |
|
---|
35 | #ifdef __cplusplus
|
---|
36 | }
|
---|
37 | #endif
|
---|
38 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.