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

#pragma once

#include <stdarg.h>

#define SIMPLE_PRINT
#ifdef __cplusplus
extern "C" {
#endif



/* 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, ...);

#ifdef __cplusplus
}
#endif
