fmt.h (1108B)
1 /* Public domain. */ 2 3 #ifndef FMT_H 4 #define FMT_H 5 6 #define FMT_ULONG 40 /* enough space to hold 2^128 - 1 in decimal, plus \0 */ 7 #define FMT_LEN ((char *) 0) /* convenient abbreviation */ 8 9 extern unsigned int fmt_uint(char *,unsigned int); 10 extern unsigned int fmt_uint0(char *,unsigned int,unsigned int); 11 extern unsigned int fmt_xint(char *,unsigned int); 12 extern unsigned int fmt_nbbint(char *,unsigned int,unsigned int,unsigned int,unsigned int); 13 extern unsigned int fmt_ushort(char *,unsigned short); 14 extern unsigned int fmt_xshort(char *,unsigned short); 15 extern unsigned int fmt_nbbshort(char *,unsigned int,unsigned int,unsigned int,unsigned short); 16 extern unsigned int fmt_ulong(char *,unsigned long); 17 extern unsigned int fmt_xlong(char *,unsigned long); 18 extern unsigned int fmt_nbblong(char *,unsigned int,unsigned int,unsigned int,unsigned long); 19 20 extern unsigned int fmt_plusminus(char *,int); 21 extern unsigned int fmt_minus(char *,int); 22 extern unsigned int fmt_0x(char *,int); 23 24 extern unsigned int fmt_str(char *,const char *); 25 extern unsigned int fmt_strn(char *,const char *,unsigned int); 26 27 #endif