*
* @(#)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;
/* http://www.pagetable.com/?p=298 */
int retval;
va_list ap;
-
va_start(ap, fmt);
retval = kvsprintf(fmt, dest, 10, ap);
va_end(ap);
#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)));