00001 /* 00002 ** snprintf.h for in /root/work/lseos-0.3.9/libkern 00003 ** 00004 ** Made by Vianney Rancurel 00005 ** Login <vianney@epita.fr> 00006 ** 00007 ** Started on Fri Oct 10 14:54:59 2003 Vianney Rancurel 00008 ** Last update Mon Dec 6 12:27:45 2004 Vianney Rancurel 00009 */ 00010 #ifndef __PRINTF_SNPRINTF_H__ 00011 #define __PRINTF_SNPRINTF_H__ 1 00012 #include <libc.h> 00013 00014 typedef struct s_snprintf_data 00015 { 00016 char *buf; 00017 int max; 00018 int pos; 00019 } t_snprintf_data; 00020 00021 /* PROTO snprintf.c */ 00022 /* snprintf.c */ 00023 int snprintf_fn(t_snprintf_data *sd, char *buf, int len); 00024 int snprintf(char *str, int count, char *fmt, ...); 00025 int snprintf_linux(char *str, int count, char *fmt, ...); 00026 #endif