
/*
 * simple_print.h
 *
 *  Created on: 13 Sep 2013
 *      Author: Mike
 */

#pragma once
#include <stdarg.h>


#define SIMPLE_PRINT

/* copied from some GPL source from 2001 */
/* for explanation of the __attribute__ here see e.g https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html */
extern int  __attribute__ ((format (printf, 1, 2))) small_printf(const char *format, ...);
extern int  __attribute__ ((format (printf, 2, 3))) small_sprintf(char *out, const char *format, ...);
extern int  __attribute__ ((format (printf, 2, 3))) small_chkprintf(uint16_t initial_csum, const char* format, ...);



#endif /* SIMPLE_PRINT_H_ */
