]>
Commit | Line | Data |
---|---|---|
bd20f8f4 | 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 | //----------------------------------------------------------------------------- | |
10 | ||
f7e3ed82 | 11 | #ifndef __PRINTF_H |
12 | #define __PRINTF_H | |
13 | ||
14 | #include <stdarg.h> | |
15d4bf3e | 15 | #include <stddef.h> |
0062cc1c | 16 | //#include "util.h" |
15d4bf3e | 17 | #include "string.h" |
f7e3ed82 | 18 | |
19 | int kvsprintf(const char *format, void *arg, int radix, va_list ap) __attribute__ ((format (printf, 1, 0))); | |
20 | int vsprintf(char *str, const char *format, va_list ap) __attribute__ ((format (printf, 2, 0))); | |
21 | int sprintf(char *str, const char *format, ...) __attribute__ ((format (printf, 2, 3))); | |
22 | ||
9e13f875 | 23 | #endif |