fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
fmt.h
Go to the documentation of this file.
1#ifndef FMT_H
2#define FMT_H
3
11#define FMT_ULONG 40 /* enough space to hold 2^128 - 1 in decimal, plus \0 */
12#define FMT_LEN ((char *) 0) /* convenient abbreviation */
13
14extern unsigned int fmt_str(char *,const char *);
15extern unsigned int fmt_strn(char *,const char *,unsigned int);
16extern unsigned int fmt_uint(char *,unsigned int);
17extern unsigned int fmt_uint0(char *,unsigned int,unsigned int);
18extern unsigned int fmt_ulong(char *,unsigned long);
19extern unsigned int fmt_xlong(char *,unsigned long);
20
21extern int fromhex(unsigned char);
22extern char tohex(char);
23
24/* for future releases */
25// extern unsigned int fmt_xint(char *,unsigned int);
26// extern unsigned int fmt_nbbint(char *,unsigned int,unsigned int,unsigned int,unsigned int);
27// extern unsigned int fmt_ushort(char *,unsigned short);
28// extern unsigned int fmt_xshort(char *,unsigned short);
29// extern unsigned int fmt_nbbshort(char *,unsigned int,unsigned int,unsigned int,unsigned short);
30// extern unsigned int fmt_nbblong(char *,unsigned int,unsigned int,unsigned int,unsigned long);
31// extern unsigned int fmt_plusminus(char *,int);
32// extern unsigned int fmt_minus(char *,int);
33// extern unsigned int fmt_0x(char *,int);
34/* to be done */
35
36#endif
unsigned int fmt_uint0(char *, unsigned int, unsigned int)
Definition: fmt.c:35
unsigned int fmt_xlong(char *, unsigned long)
Definition: fmt.c:57
unsigned int fmt_ulong(char *, unsigned long)
Definition: fmt.c:44
unsigned int fmt_strn(char *, const char *, unsigned int)
Definition: fmt.c:20
unsigned int fmt_str(char *, const char *)
Definition: fmt.c:10
int fromhex(unsigned char)
Definition: fmt.c:79
unsigned int fmt_uint(char *, unsigned int)
Definition: fmt.c:30
char tohex(char)
Definition: fmt.c:70