|
Last change
on this file was 8162, checked in by bird, 24 years ago |
|
Stop complaining, just include the stupid file. (stdarg.h)
|
|
File size:
773 bytes
|
| Line | |
|---|
| 1 | /* $Id: kKLsprintf.h,v 1.2 2002-04-01 10:04:26 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 | #if 0
|
|---|
| 20 | #error "must include stdarg.h"
|
|---|
| 21 | #else
|
|---|
| 22 | #include <stdarg.h>
|
|---|
| 23 | #endif
|
|---|
| 24 | #endif
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | /*
|
|---|
| 28 | * Function prototypes
|
|---|
| 29 | */
|
|---|
| 30 | int sprintf(char *pszBuffer, const char *pszFormat, ...);
|
|---|
| 31 | int vsprintf(char *pszBuffer, const char *pszFormat, va_list args);
|
|---|
| 32 |
|
|---|
| 33 | /*
|
|---|
| 34 | * va_start have to be redeclared. Compiler don't accept SSToDS() as va_start argument.
|
|---|
| 35 | */
|
|---|
| 36 | #undef va_start
|
|---|
| 37 | #define va_start(ap, last) ap = ((va_list)SSToDS(&last)) + __nextword(last)
|
|---|
| 38 |
|
|---|
| 39 | #ifdef __cplusplus
|
|---|
| 40 | }
|
|---|
| 41 | #endif
|
|---|
| 42 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.