__printf.h

Go to the documentation of this file.
00001 /*
00002 ** __printf.h for  in 
00003 ** 
00004 ** Made by 
00005 ** Login   <vianney@epita.fr>
00006 ** 
00007 ** Started on  Fri Feb 18 01:03:39 2000 
00008 ** Last update Tue Nov 30 15:53:37 2004 Vianney Rancurel
00009 */
00010 #ifndef __PRINTF___PRINTF_H__
00011 #define __PRINTF___PRINTF_H__   1
00012 #include <libc.h>
00013 
00014 /*
00015  * should return the number of bytes written or -1 on error, __printf
00016  * will return the actual number of bytes written
00017  */
00018 typedef ssize_t (*t___printf_fn)(void *data, char *buf, int len);
00019 
00020 /* PROTO __printf.c */
00021 /* __printf.c */
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

Generated on Wed May 24 23:04:17 2006 for LSE/OS by  doxygen 1.4.6