diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-12-18 21:57:14 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-12-18 21:57:14 +0100 |
commit | 62766425fe3a552440228c78f13a2c1dd62e228b (patch) | |
tree | c82f82df9317bd3a98de3f43de44f6a9edf178d3 /tmp/printf/printf.h | |
parent | 022daa0619f7d571db6e81c09ab5c0f0af389c18 (diff) | |
download | stm32f103-playground-62766425fe3a552440228c78f13a2c1dd62e228b.tar.gz stm32f103-playground-62766425fe3a552440228c78f13a2c1dd62e228b.tar.bz2 stm32f103-playground-62766425fe3a552440228c78f13a2c1dd62e228b.tar.xz stm32f103-playground-62766425fe3a552440228c78f13a2c1dd62e228b.zip |
o Functional and tested printf.
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 |