00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __PRINTF___PRINTF_H__
00011 #define __PRINTF___PRINTF_H__ 1
00012 #include <libc.h>
00013
00014
00015
00016
00017
00018 typedef ssize_t (*t___printf_fn)(void *data, char *buf, int len);
00019
00020
00021
00022 ssize_t __printf_char(t___printf_fn fn, void *data, char c);
00023 ssize_t __printf_str(t___printf_fn fn, void *data, char *str, int max_len);
00024 ssize_t __cvt_str(t___printf_fn fn, void *data, char *value, u_int flags, int len1, int len2);
00025 ssize_t __cvt_quad(t___printf_fn fn, void *data, quad_t value, int base, int dosign, u_int flags, int len1, int len2);
00026 ssize_t __cvt_num(t___printf_fn fn, void *data, long value, int base, int dosign, u_int flags, int len1, int len2);
00027 ssize_t __vprintf(t___printf_fn fn, void *data, const char *fmt, va_list args);
00028 ssize_t __printf(t___printf_fn fn, void *data, const char *fmt, ...);
00029 #endif