Lines Matching defs:currlen
183 size_t currlen;
186 flags = currlen = cflags = min = 0;
191 if (ch == '\0' || (buffer == NULL && currlen >= *maxlen))
199 doapr_outch(sbuffer, buffer, &currlen, maxlen, ch);
305 fmtint(sbuffer, buffer, &currlen, maxlen,
329 fmtint(sbuffer, buffer, &currlen, maxlen, value,
338 fmtfp(sbuffer, buffer, &currlen, maxlen,
358 doapr_outch(sbuffer, buffer, &currlen, maxlen,
369 fmtstr(sbuffer, buffer, &currlen, maxlen, strvalue,
374 fmtint(sbuffer, buffer, &currlen, maxlen,
381 *num = currlen;
385 *num = (long int)currlen;
389 *num = (LLONG) currlen;
393 *num = currlen;
397 doapr_outch(sbuffer, buffer, &currlen, maxlen, ch);
418 *truncated = (currlen > *maxlen - 1);
420 currlen = *maxlen - 1;
421 doapr_outch(sbuffer, buffer, &currlen, maxlen, '\0');
422 *retlen = currlen - 1;
429 size_t *currlen,
445 doapr_outch(sbuffer, buffer, currlen, maxlen, ' ');
450 doapr_outch(sbuffer, buffer, currlen, maxlen, *value++);
454 doapr_outch(sbuffer, buffer, currlen, maxlen, ' ');
463 size_t *currlen,
520 doapr_outch(sbuffer, buffer, currlen, maxlen, ' ');
526 doapr_outch(sbuffer, buffer, currlen, maxlen, signvalue);
530 doapr_outch(sbuffer, buffer, currlen, maxlen, *prefix);
537 doapr_outch(sbuffer, buffer, currlen, maxlen, '0');
543 doapr_outch(sbuffer, buffer, currlen, maxlen, convert[--place]);
547 doapr_outch(sbuffer, buffer, currlen, maxlen, ' ');
584 size_t *currlen,
660 doapr_outch(sbuffer, buffer, currlen, maxlen, signvalue);
665 doapr_outch(sbuffer, buffer, currlen, maxlen, '0');
670 doapr_outch(sbuffer, buffer, currlen, maxlen, ' ');
674 doapr_outch(sbuffer, buffer, currlen, maxlen, signvalue);
677 doapr_outch(sbuffer, buffer, currlen, maxlen, iconvert[--iplace]);
684 doapr_outch(sbuffer, buffer, currlen, maxlen, '.');
687 doapr_outch(sbuffer, buffer, currlen, maxlen, fconvert[--fplace]);
690 doapr_outch(sbuffer, buffer, currlen, maxlen, '0');
695 doapr_outch(sbuffer, buffer, currlen, maxlen, ' ');
702 char **buffer, size_t *currlen, size_t *maxlen, int c)
707 /* |currlen| must always be <= |*maxlen| */
708 assert(*currlen <= *maxlen);
710 if (buffer && *currlen == *maxlen) {
718 if (*currlen > 0) {
720 memcpy(*buffer, *sbuffer, *currlen);
732 if (*currlen < *maxlen) {
734 (*sbuffer)[(*currlen)++] = (char)c;
736 (*buffer)[(*currlen)++] = (char)c;