Lines Matching refs:maxlen
182 static int dopr(char *buffer, size_t maxlen, const char *format,
184 static int fmtstr(char *buffer, size_t *currlen, size_t maxlen,
186 static int fmtint(char *buffer, size_t *currlen, size_t maxlen,
188 static int fmtfp(char *buffer, size_t *currlen, size_t maxlen,
192 dopr(char *buffer, size_t maxlen, const char *format, va_list args_in) in dopr() argument
222 DOPR_OUTCH(buffer, currlen, maxlen, ch); in dopr()
333 if (fmtint(buffer, &currlen, maxlen, in dopr()
353 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
373 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
395 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
404 if (fmtfp(buffer, &currlen, maxlen, fvalue, in dopr()
415 if (fmtfp(buffer, &currlen, maxlen, fvalue, in dopr()
426 if (fmtfp(buffer, &currlen, maxlen, fvalue, in dopr()
431 DOPR_OUTCH(buffer, currlen, maxlen, in dopr()
441 if (fmtstr(buffer, &currlen, maxlen, in dopr()
447 if (fmtint(buffer, &currlen, maxlen, in dopr()
481 DOPR_OUTCH(buffer, currlen, maxlen, ch); in dopr()
503 if (maxlen != 0) { in dopr()
504 if (currlen < maxlen - 1) in dopr()
506 else if (maxlen > 0) in dopr()
507 buffer[maxlen - 1] = '\0'; in dopr()
514 fmtstr(char *buffer, size_t *currlen, size_t maxlen, in fmtstr() argument
535 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtstr()
540 DOPR_OUTCH(buffer, *currlen, maxlen, *value); in fmtstr()
545 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtstr()
555 fmtint(char *buffer, size_t *currlen, size_t maxlen, in fmtint() argument
612 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtint()
618 DOPR_OUTCH(buffer, *currlen, maxlen, signvalue); in fmtint()
623 DOPR_OUTCH(buffer, *currlen, maxlen, '0'); in fmtint()
631 DOPR_OUTCH(buffer, *currlen, maxlen, convert[place]); in fmtint()
636 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtint()
715 fmtfp (char *buffer, size_t *currlen, size_t maxlen, in fmtfp() argument
821 DOPR_OUTCH(buffer, *currlen, maxlen, signvalue); in fmtfp()
826 DOPR_OUTCH(buffer, *currlen, maxlen, '0'); in fmtfp()
831 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtfp()
835 DOPR_OUTCH(buffer, *currlen, maxlen, signvalue); in fmtfp()
839 DOPR_OUTCH(buffer, *currlen, maxlen, iconvert[iplace]); in fmtfp()
851 DOPR_OUTCH(buffer, *currlen, maxlen, '.'); in fmtfp()
854 DOPR_OUTCH(buffer, *currlen, maxlen, '0'); in fmtfp()
860 DOPR_OUTCH(buffer, *currlen, maxlen, fconvert[fplace]); in fmtfp()
865 DOPR_OUTCH(buffer, *currlen, maxlen, ' '); in fmtfp()