Merge pull request #2593 from Akury83/master
[RRG-proxmark3.git] / armsrc / printf.h
blobcd2c7bf9b0385cd4dddd213c11e6461368efb654
1 //-----------------------------------------------------------------------------
2 // Borrowed initially from subr_prf.c 8.3 (Berkeley) 1/21/94
3 // Copyright (c) 1986, 1988, 1991, 1993
4 // The Regents of the University of California. All rights reserved.
5 // (c) UNIX System Laboratories, Inc.
6 // All or some portions of this file are derived from material licensed
7 // to the University of California by American Telephone and Telegraph
8 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
9 // the permission of UNIX System Laboratories, Inc.
10 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
12 // This program is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
17 // This program is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
22 // See LICENSE.txt for the text of the license.
23 //-----------------------------------------------------------------------------
24 // Common *printf() functions
25 //-----------------------------------------------------------------------------
27 #ifndef __PRINTF_H
28 #define __PRINTF_H
30 #include "common.h"
31 #include <stdarg.h> // va_list
33 int kvsprintf(const char *fmt, void *arg, int radix, va_list ap) __attribute__((format(printf, 1, 0)));
34 int vsprintf(char *dest, const char *fmt, va_list ap) __attribute__((format(printf, 2, 0)));
35 int sprintf(char *dest, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
37 #endif