CHG: moved to header file

This commit is contained in:
iceman1001 2017-01-21 10:28:14 +01:00
parent e04f23fabf
commit 15d4bf3e78
2 changed files with 3 additions and 6 deletions

View file

@ -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);

View file

@ -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)));