Lines Matching +full:0 +full:f
14 * the regex: [0-9]*\.?[0-9]*
40 if (v < 0) { in prdec()
48 digs[i] = 0; in prdec()
51 digs[i] = '0' + (v % 10); in prdec()
57 while (digs[i] != '\0') { in prdec()
66 r->buf[r->idx] = 0; in endrec()
70 static int vpf(struct _pfr *r, const char *f, va_list ap) in vpf() argument
72 for (/**/; *f != '\0'; f++) { in vpf()
75 if (*f != '%') { in vpf()
76 pc(r, *f); in vpf()
80 if (f[1] == 'l') { in vpf()
82 f++; in vpf()
86 while (f[1] >= '0' && f[1] <= '9') { in vpf()
87 f++; in vpf()
89 if (f[1] == '.') { in vpf()
90 f++; in vpf()
92 while (f[1] >= '0' && f[1] <= '9') { in vpf()
93 f++; in vpf()
96 switch (*(++f)) { in vpf()
97 case 0: in vpf()
108 while (*s != '\0') { in vpf()
115 pc(r, '0'); in vpf()
119 int sig = 0; in vpf()
122 for (int i = 2*sizeof(long) - 1; i >= 0; i--) { in vpf()
123 int d = (v >> (i*4)) & 0xf; in vpf()
126 if (sig || i == 0) { in vpf()
137 pc(r, *f); in vpf()
146 va_start(ap, f); \
147 ret = vpf(&r, f, ap); \
150 static inline int snprintf(char *buf, unsigned long len, const char *f, ...) in snprintf() argument
159 static inline int sprintf(char *buf, const char *f, ...) in sprintf() argument
162 struct _pfr r = { .buf = buf, .len = 0x7fffffff }; in sprintf()
168 static inline int printf(const char *f, ...) in printf() argument
171 struct _pfr r = {0}; in printf()