| 1 | #include <stdio.h> |
| 2 | #undef _ANSI_ARGS_ |
| 3 | #if defined(USE_PROTOTYPE) || ((defined(__STDC__) || defined(SABER)) && !defined(NO_PROTOTYPE)) || defined(__cplusplus) |
| 4 | # define _USING_PROTOTYPES_ 1 |
| 5 | # define _ANSI_ARGS_(x) x |
| 6 | #else |
| 7 | # define _ANSI_ARGS_(x) () |
| 8 | #endif |
| 9 | |
| 10 | #ifdef SPRINTF_RETURN_CHAR |
| 11 | extern char *sprintf _ANSI_ARGS_((char *,const char *, ...)); |
| 12 | #else |
| 13 | extern int sprintf _ANSI_ARGS_((char *,const char *, ...)); |
| 14 | #endif |
| 15 | |
| 16 | int main() |
| 17 | { |
| 18 | char buf[16]; |
| 19 | sprintf(buf,"%d",0); |
| 20 | return 0; |
| 21 | } |