diff options
Diffstat (limited to 'tmp/printf/printf.h')
-rwxr-xr-x | tmp/printf/printf.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tmp/printf/printf.h b/tmp/printf/printf.h index 9723b0f..f697ea6 100755 --- a/tmp/printf/printf.h +++ b/tmp/printf/printf.h @@ -108,17 +108,22 @@ regs Kusti, 23.10.2004 #include <stdarg.h> +#ifdef __cplusplus +extern "C" { +#endif + void init_printf(void* putp,void (*putf) (void*,char)); -void tfp_printf(char *fmt, ...); -void tfp_sprintf(char* s,char *fmt, ...); +void tfp_printf(const char *fmt, ...); +void tfp_sprintf(char* s,const char *fmt, ...); -void tfp_format(void* putp,void (*putf) (void*,char),char *fmt, va_list va); +void tfp_format(void* putp,void (*putf) (void*,char),const char *fmt, va_list va); #define printf tfp_printf #define sprintf tfp_sprintf +#ifdef __cplusplus +}; #endif - - +#endif |