Lines Matching refs:width

6 static int icvt_f(FILE *f, va_list *args, int store, int width, int type);
7 static int icvt_x(FILE *f, va_list *args, int store, int width, int type);
8 static int icvt_sq(FILE *f, va_list *args, int store, int width, int type);
9 static int icvt_c(FILE *f, va_list *args, int store, int width, int type);
10 static int icvt_d(FILE *f, va_list *args, int store, int width, int type);
11 static int icvt_i(FILE *f, va_list *args, int store, int width, int type);
12 static int icvt_n(FILE *f, va_list *args, int store, int width, int type);
13 static int icvt_o(FILE *f, va_list *args, int store, int width, int type);
14 static int icvt_p(FILE *f, va_list *args, int store, int width, int type);
15 static int icvt_s(FILE *f, va_list *args, int store, int width, int type);
16 static int icvt_u(FILE *f, va_list *args, int store, int width, int type);
55 #define wgetc(c, f, out) if(width--==0) goto out; (c)=ngetc(f)
56 #define wungetc(c, f) (++width, nungetc(c, f))
61 int c, width, type, store; in vfscanf() local
91 width=0; in vfscanf()
92 while('0'<=*fmtp && *fmtp<='9') width=width*10 + *fmtp++ - '0'; in vfscanf()
95 width=-1; in vfscanf()
98 if(!(*icvt[*fmtp])(f, &args, store, width, type)) in vfscanf()
105 static int icvt_n(FILE *f, va_list *args, int store, int width, int type){ in icvt_n() argument
107 #pragma ref width in icvt_n()
133 int store, int width, int type, int unsgned, int base){ in icvt_fixed() argument
140 if(width--==0){ in icvt_fixed()
211 static int icvt_d(FILE *f, va_list *args, int store, int width, int type){ in icvt_d() argument
212 return icvt_fixed(f, args, store, width, type, SIGNED, 10); in icvt_d()
214 static int icvt_x(FILE *f, va_list *args, int store, int width, int type){ in icvt_x() argument
215 return icvt_fixed(f, args, store, width, type, UNSIGNED, 16); in icvt_x()
217 static int icvt_o(FILE *f, va_list *args, int store, int width, int type){ in icvt_o() argument
218 return icvt_fixed(f, args, store, width, type, UNSIGNED, 8); in icvt_o()
220 static int icvt_i(FILE *f, va_list *args, int store, int width, int type){ in icvt_i() argument
221 return icvt_fixed(f, args, store, width, type, SIGNED, 0); in icvt_i()
223 static int icvt_u(FILE *f, va_list *args, int store, int width, int type){ in icvt_u() argument
224 return icvt_fixed(f, args, store, width, type, UNSIGNED, 10); in icvt_u()
226 static int icvt_p(FILE *f, va_list *args, int store, int width, int type){ in icvt_p() argument
227 return icvt_fixed(f, args, store, width, type, POINTER, 16); in icvt_p()
230 static int icvt_f(FILE *f, va_list *args, int store, int width, int type){ in icvt_f() argument
234 if(width<0 || NBUF<width) width=NBUF; /* bug -- no limit specified in ansi */ in icvt_f()
238 if(width--==0){ in icvt_f()
278 static int icvt_s(FILE *f, va_list *args, int store, int width, int type){ in icvt_s() argument
286 if(width--==0){ in icvt_s()
306 static int icvt_c(FILE *f, va_list *args, int store, int width, int type){ in icvt_c() argument
311 if(width<0) width=1; in icvt_c()
338 static int icvt_sq(FILE *f, va_list *args, int store, int width, int type){ in icvt_sq() argument