Lines Matching refs:currlen
172 static int fmtstr(char *buffer, size_t *currlen, size_t maxlen,
174 static int fmtint(char *buffer, size_t *currlen, size_t maxlen,
176 static int fmtfp(char *buffer, size_t *currlen, size_t maxlen,
191 size_t currlen; in dopr() local
197 currlen = flags = cflags = min = 0; in dopr()
210 DOPR_OUTCH(buffer, currlen, maxlen, ch); in dopr()
321 if (fmtint(buffer, &currlen, maxlen, in dopr()
341 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
361 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
383 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
392 if (fmtfp(buffer, &currlen, maxlen, fvalue, in dopr()
403 if (fmtfp(buffer, &currlen, maxlen, fvalue, in dopr()
414 if (fmtfp(buffer, &currlen, maxlen, fvalue, in dopr()
419 DOPR_OUTCH(buffer, currlen, maxlen, in dopr()
429 if (fmtstr(buffer, &currlen, maxlen, in dopr()
435 if (fmtint(buffer, &currlen, maxlen, in dopr()
444 *num = currlen; in dopr()
448 *num = (long int)currlen; in dopr()
452 *num = (LLONG)currlen; in dopr()
456 *num = (ssize_t)currlen; in dopr()
460 *num = (intmax_t)currlen; in dopr()
464 *num = currlen; in dopr()
469 DOPR_OUTCH(buffer, currlen, maxlen, ch); in dopr()
492 if (currlen < maxlen - 1) in dopr()
493 buffer[currlen] = '\0'; in dopr()
498 return currlen < INT_MAX ? (int)currlen : -1; in dopr()
502 fmtstr(char *buffer, size_t *currlen, size_t maxlen, in fmtstr() argument
523 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtstr()
528 DOPR_OUTCH(buffer, *currlen, maxlen, *value); in fmtstr()
533 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtstr()
543 fmtint(char *buffer, size_t *currlen, size_t maxlen, in fmtint() argument
600 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtint()
606 DOPR_OUTCH(buffer, *currlen, maxlen, signvalue); in fmtint()
611 DOPR_OUTCH(buffer, *currlen, maxlen, '0'); in fmtint()
619 DOPR_OUTCH(buffer, *currlen, maxlen, convert[place]); in fmtint()
624 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtint()
703 fmtfp (char *buffer, size_t *currlen, size_t maxlen, in fmtfp() argument
809 DOPR_OUTCH(buffer, *currlen, maxlen, signvalue); in fmtfp()
814 DOPR_OUTCH(buffer, *currlen, maxlen, '0'); in fmtfp()
819 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtfp()
823 DOPR_OUTCH(buffer, *currlen, maxlen, signvalue); in fmtfp()
827 DOPR_OUTCH(buffer, *currlen, maxlen, iconvert[iplace]); in fmtfp()
839 DOPR_OUTCH(buffer, *currlen, maxlen, '.'); in fmtfp()
842 DOPR_OUTCH(buffer, *currlen, maxlen, '0'); in fmtfp()
848 DOPR_OUTCH(buffer, *currlen, maxlen, fconvert[fplace]); in fmtfp()
853 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtfp()