2010-02-21 08:12:52 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Copyright (C) 2010 Hector Martin "marcan" <marcan@marcansoft.com>
|
|
|
|
//
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// 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
|