2010-02-21 08:12:52 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
2022-01-06 09:19:46 +08:00
|
|
|
// Borrowed initially from subr_prf.c 8.3 (Berkeley) 1/21/94
|
|
|
|
// Copyright (c) 1986, 1988, 1991, 1993
|
|
|
|
// The Regents of the University of California. All rights reserved.
|
|
|
|
// (c) UNIX System Laboratories, Inc.
|
|
|
|
// All or some portions of this file are derived from material licensed
|
|
|
|
// to the University of California by American Telephone and Telegraph
|
|
|
|
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
|
|
|
|
// the permission of UNIX System Laboratories, Inc.
|
|
|
|
// Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
|
2010-02-21 08:12:52 +08:00
|
|
|
//
|
2022-01-06 09:19:46 +08:00
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// See LICENSE.txt for the text of the license.
|
2010-02-21 08:12:52 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Common *printf() functions
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2010-02-21 06:51:00 +08:00
|
|
|
#ifndef __PRINTF_H
|
|
|
|
#define __PRINTF_H
|
|
|
|
|
2019-08-08 22:57:33 +08:00
|
|
|
#include "common.h"
|
|
|
|
#include <stdarg.h> // va_list
|
2010-02-21 06:51:00 +08:00
|
|
|
|
2019-04-07 02:35:58 +08:00
|
|
|
int kvsprintf(const char *fmt, void *arg, int radix, va_list ap) __attribute__((format(printf, 1, 0)));
|
2019-03-19 03:16:04 +08:00
|
|
|
int vsprintf(char *dest, const char *fmt, va_list ap) __attribute__((format(printf, 2, 0)));
|
|
|
|
int sprintf(char *dest, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
|
2010-02-21 06:51:00 +08:00
|
|
|
|
2010-02-25 04:34:13 +08:00
|
|
|
#endif
|