Subversion Repositories libSmallPrintf

Rev

Go to most recent revision | Details | 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
13
 
14
 
15
 
16
/* copied from some GPL source from 2001 */
17
/* for explanation of the __attribute__ here see e.g https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html */
18
extern int  __attribute__ ((format (printf, 1, 2))) small_printf(const char *format, ...);
19
extern int  __attribute__ ((format (printf, 2, 3))) small_sprintf(char *out, const char *format, ...);