Lines Matching defs:prec
77 %[flag][width][.prec][modifier]type
85 prec: none .0 .n .*
237 * b: when .prec is used, we must not access any extra byte of the
244 static int type_s(xprintf_struct *s, int width, int prec,
252 /* hand-made strlen() whitch stops when 'prec' is reached. */
253 /* if 'prec' is -1 then it is never reached. */
255 while (arg_string[string_len] != 0 && (size_t)prec != string_len)
304 int width, prec, modifier, approx_width;
373 /* .prec */
376 if (*SRCTXT == '*') { /* .prec given by next argument */
378 prec = va_arg(s->vargs, int);
379 if ((size_t)prec >= 0x3fffU) /* 'size_t' to check against negative values too */
380 prec = 0x3fff;
381 } else { /* .prec given as ASCII number */
384 prec = getint(&SRCTXT);
388 prec = -1; /* no .prec specified */
446 if (prec != -1) {
449 sprintf(format_ptr, "%i", prec);
469 /* vague approximation of minimal length if width or prec are specified */
470 approx_width = width + prec;
471 if (approx_width < 0) /* because width == -1 and/or prec == -1 */
525 return type_s(s, width, prec, format_string, va_arg(s->vargs, const char*));