Lines Matching refs:width

154 	int tfl, flags, width, precision;  in vfprintf()  local
167 width = va_arg(args, int); in vfprintf()
169 if(width<0){ in vfprintf()
171 width = -width; in vfprintf()
175 width = 0; in vfprintf()
176 while('0'<=*s && *s<='9') width = width*10 + *s++ - '0'; in vfprintf()
199 if(ocvt[*s]) nprint += (*ocvt[*s++])(f, &args, flags, width, precision); in vfprintf()
209 ocvt_c(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_c() argument
214 if(!(flags&LEFT)) for(i=1; i<width; i++) putc(' ', f); in ocvt_c()
216 if(flags&LEFT) for(i=1; i<width; i++) putc(' ', f); in ocvt_c()
217 return width<1 ? 1 : width; in ocvt_c()
221 ocvt_s(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_s() argument
234 for(; i<width; i++){ in ocvt_s()
251 for(; i<width; i++){ in ocvt_s()
260 ocvt_n(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_n() argument
263 #pragma ref width in ocvt_n()
287 ocvt_fixed(FILE *f, va_list *args, int flags, int width, int precision, in ocvt_fixed() argument
335 npad = width-nout; in ocvt_fixed()
377 ocvt_X(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_X() argument
379 return ocvt_fixed(f, args, flags, width, precision, 16, 0, "0123456789ABCDEF", "0X"); in ocvt_X()
383 ocvt_d(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_d() argument
385 return ocvt_fixed(f, args, flags, width, precision, 10, 1, "0123456789", ""); in ocvt_d()
389 ocvt_o(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_o() argument
391 return ocvt_fixed(f, args, flags, width, precision, 8, 0, "01234567", "0"); in ocvt_o()
395 ocvt_p(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_p() argument
397 return ocvt_fixed(f, args, flags|PTR|ALT, width, precision, 16, 0, in ocvt_p()
402 ocvt_u(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_u() argument
404 return ocvt_fixed(f, args, flags, width, precision, 10, 0, "0123456789", ""); in ocvt_u()
408 ocvt_x(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_x() argument
410 return ocvt_fixed(f, args, flags, width, precision, 16, 0, "0123456789abcdef", "0x"); in ocvt_x()
416 ocvt_E(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_E() argument
418 return ocvt_flt(f, args, flags, width, precision, 'E'); in ocvt_E()
422 ocvt_G(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_G() argument
424 return ocvt_flt(f, args, flags, width, precision, 'G'); in ocvt_G()
428 ocvt_e(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_e() argument
430 return ocvt_flt(f, args, flags, width, precision, 'e'); in ocvt_e()
434 ocvt_f(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_f() argument
436 return ocvt_flt(f, args, flags, width, precision, 'f'); in ocvt_f()
440 ocvt_g(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_g() argument
442 return ocvt_flt(f, args, flags, width, precision, 'g'); in ocvt_g()
446 ocvt_flt(FILE *f, va_list *args, int flags, int width, int precision, char afmt) in ocvt_flt() argument
532 while(nout < width){ in ocvt_flt()
540 while(nout < width){ in ocvt_flt()
561 while(nout < width){ in ocvt_flt()