text
[RRG-proxmark3.git] / armsrc / printf.h
blobbd0a6e2c96dc17607a6568e1d3d59a884d42b470
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 Hector Martin "marcan" <marcan@marcansoft.com>
3 //
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
6 // the license.
7 //-----------------------------------------------------------------------------
8 // Common *printf() functions
9 //-----------------------------------------------------------------------------
11 #ifndef __PRINTF_H
12 #define __PRINTF_H
14 #include "common.h"
15 #include <stdarg.h> // va_list
17 int kvsprintf(const char *fmt, void *arg, int radix, va_list ap) __attribute__((format(printf, 1, 0)));
18 int vsprintf(char *dest, const char *fmt, va_list ap) __attribute__((format(printf, 2, 0)));
19 int sprintf(char *dest, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
21 #endif