Lines Matching defs:prec
77 %[flag][width][.prec][modifier]type
85 prec: none .0 .n .*
234 * b: when .prec is used, we must not access any extra byte of the
241 static int type_s(xprintf_struct *s, int width, int prec,
249 /* hand-made strlen() whitch stops when 'prec' is reached. */
250 /* if 'prec' is -1 then it is never reached. */
252 while (arg_string[string_len] != 0 && (size_t)prec != string_len)
301 int width, prec, modifier, approx_width;
370 /* .prec */
373 if (*SRCTXT == '*') { /* .prec given by next argument */
375 prec = va_arg(s->vargs, int);
376 if ((size_t)prec >= 0x3fffU) /* 'size_t' to check against negative values too */
377 prec = 0x3fff;
378 } else { /* .prec given as ASCII number */
381 prec = getint(&SRCTXT);
385 prec = -1; /* no .prec specified */
435 if (prec != -1) {
438 sprintf(format_ptr, "%i", prec);
458 /* vague approximation of minimal length if width or prec are specified */
459 approx_width = width + prec;
460 if (approx_width < 0) /* because width == -1 and/or prec == -1 */
510 return type_s(s, width, prec, format_string, va_arg(s->vargs, const char*));