Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
48 | mjames | 1 | /* |
2 | * simple_print.h |
||
3 | * |
||
4 | * Created on: 13 Sep 2013 |
||
5 | * Author: Mike |
||
6 | */ |
||
7 | |||
8 | #pragma once |
||
9 | #include <stdarg.h> |
||
10 | |||
11 | |||
12 | #define SIMPLE_PRINT |
||
13 | |||
14 | /* copied from some GPL source from 2001 */ |
||
15 | /* for explanation of the __attribute__ here see e.g https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html */ |
||
16 | extern int __attribute__ ((format (printf, 1, 2))) small_printf(const char *format, ...); |
||
17 | extern int __attribute__ ((format (printf, 2, 3))) small_sprintf(char *out, const char *format, ...); |
||
18 | extern int __attribute__ ((format (printf, 2, 3))) small_chkprintf(uint16_t initial_csum, const char* format, ...); |
||
19 | |||
20 | |||
21 | |||
22 | #endif /* SIMPLE_PRINT_H_ */ |