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