Lines Matching refs:width

151 	int flags, width, precision;  in vfprintf()  local
166 width = va_arg(args, int); in vfprintf()
168 if(width<0){ in vfprintf()
170 width = -width; in vfprintf()
174 width = 0; in vfprintf()
175 while('0'<=*s && *s<='9') width = width*10 + *s++ - '0'; in vfprintf()
191 if(ocvt[*s]) nprint += (*ocvt[*s++])(f, &args, flags, width, precision); in vfprintf()
211 ocvt_c(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_c() argument
216 if(!(flags&LEFT)) for(i=1; i<width; i++) putc(' ', f); in ocvt_c()
218 if(flags&LEFT) for(i=1; i<width; i++) putc(' ', f); in ocvt_c()
219 return width<1 ? 1 : width; in ocvt_c()
223 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()
285 ocvt_fixed(FILE *f, va_list *args, int flags, int width, int precision, in ocvt_fixed() argument
331 npad = width-nout; in ocvt_fixed()
373 ocvt_X(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_X() argument
375 return ocvt_fixed(f, args, flags, width, precision, 16, 0, "0123456789ABCDEF", "0X"); in ocvt_X()
379 ocvt_d(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_d() argument
381 return ocvt_fixed(f, args, flags, width, precision, 10, 1, "0123456789", ""); in ocvt_d()
385 ocvt_o(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_o() argument
387 return ocvt_fixed(f, args, flags, width, precision, 8, 0, "01234567", "0"); in ocvt_o()
391 ocvt_p(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_p() argument
393 return ocvt_fixed(f, args, flags|PTR|ALT, width, precision, 16, 0, in ocvt_p()
398 ocvt_u(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_u() argument
400 return ocvt_fixed(f, args, flags, width, precision, 10, 0, "0123456789", ""); in ocvt_u()
404 ocvt_x(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_x() argument
406 return ocvt_fixed(f, args, flags, width, precision, 16, 0, "0123456789abcdef", "0x"); in ocvt_x()
412 ocvt_E(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_E() argument
414 return ocvt_flt(f, args, flags, width, precision, 'E'); in ocvt_E()
418 ocvt_G(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_G() argument
420 return ocvt_flt(f, args, flags, width, precision, 'G'); in ocvt_G()
424 ocvt_e(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_e() argument
426 return ocvt_flt(f, args, flags, width, precision, 'e'); in ocvt_e()
430 ocvt_f(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_f() argument
432 return ocvt_flt(f, args, flags, width, precision, 'f'); in ocvt_f()
436 ocvt_g(FILE *f, va_list *args, int flags, int width, int precision) in ocvt_g() argument
438 return ocvt_flt(f, args, flags, width, precision, 'g'); in ocvt_g()
442 ocvt_flt(FILE *f, va_list *args, int flags, int width, int precision, char afmt) in ocvt_flt() argument
523 while(nout < width){ in ocvt_flt()
531 while(nout < width){ in ocvt_flt()
552 while(nout < width){ in ocvt_flt()