mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-31 04:39:49 +08:00
CHG: moved to header file
This commit is contained in:
parent
e04f23fabf
commit
15d4bf3e78
2 changed files with 3 additions and 6 deletions
|
@ -33,12 +33,7 @@
|
|||
*
|
||||
* @(#)subr_prf.c 8.3 (Berkeley) 1/21/94
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdarg.h>
|
||||
#include "printf.h"
|
||||
#include "util.h"
|
||||
#include "string.h"
|
||||
|
||||
typedef uint32_t uintmax_t;
|
||||
typedef int32_t intmax_t;
|
||||
|
@ -431,7 +426,6 @@ sprintf(char *dest, const char *fmt, ...)
|
|||
/* http://www.pagetable.com/?p=298 */
|
||||
int retval;
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
retval = kvsprintf(fmt, dest, 10, ap);
|
||||
va_end(ap);
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
#define __PRINTF_H
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include "util.h"
|
||||
#include "string.h"
|
||||
|
||||
int kvsprintf(const char *format, void *arg, int radix, va_list ap) __attribute__ ((format (printf, 1, 0)));
|
||||
int vsprintf(char *str, const char *format, va_list ap) __attribute__ ((format (printf, 2, 0)));
|
||||
|
|
Loading…
Reference in a new issue