Lines Matching refs:out
118 static int (*lazy_vsnprintf)(out_fct_type out, char *buffer, const size_t maxlen, const char *forma…
180 static size_t _out_rev(out_fct_type out, char *buffer, size_t idx, size_t maxlen, const char *buf, … in _out_rev() argument
187 out(' ', buffer, idx++, maxlen); in _out_rev()
193 out(buf[--len], buffer, idx++, maxlen); in _out_rev()
199 out(' ', buffer, idx++, maxlen); in _out_rev()
208 static size_t _ntoa_format(out_fct_type out, char *buffer, size_t idx, size_t maxlen, char *buf, si… in _ntoa_format() argument
254 return _out_rev(out, buffer, idx, maxlen, buf, len, width, flags); in _ntoa_format()
259 static size_t _ntoa_long(out_fct_type out, char *buffer, size_t idx, size_t maxlen, unsigned long v… in _ntoa_long() argument
278 …return _ntoa_format(out, buffer, idx, maxlen, buf, len, negative, (unsigned int) base, prec, width… in _ntoa_long()
285 static size_t _ntoa_long_long(out_fct_type out, char *buffer, size_t idx, size_t maxlen, unsigned l… in _ntoa_long_long() argument
305 …return _ntoa_format(out, buffer, idx, maxlen, buf, len, negative, (unsigned int) base, prec, width… in _ntoa_long_long()
315 static size_t _etoa(out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsign…
322 static size_t _ftoa(out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsign… in _ftoa() argument
333 return _out_rev(out, buffer, idx, maxlen, "nan", 3, width, flags); in _ftoa()
335 return _out_rev(out, buffer, idx, maxlen, "fni-", 4, width, flags); in _ftoa()
337 …return _out_rev(out, buffer, idx, maxlen, (flags & FLAGS_PLUS) ? "fni+" : "fni", (flags & FLAGS_PL… in _ftoa()
344 return _etoa(out, buffer, idx, maxlen, value, prec, width, flags); in _ftoa()
440 return _out_rev(out, buffer, idx, maxlen, buf, len, width, flags); in _ftoa()
447 static size_t _etoa(out_fct_type out, char *buffer, size_t idx, size_t maxlen, double value, unsign… in _etoa() argument
451 return _ftoa(out, buffer, idx, maxlen, value, prec, width, flags); in _etoa()
540 …idx = _ftoa(out, buffer, idx, maxlen, negative ? -value : value, prec, fwidth, flags & ~FLAGS_ADAP… in _etoa()
545 out((flags & FLAGS_UPPERCASE) ? 'E' : 'e', buffer, idx++, maxlen); in _etoa()
547 …idx = _ntoa_long(out, buffer, idx, maxlen, (uint)((expval < 0) ? -expval : expval), expval < 0, 10… in _etoa()
551 while (idx - start_idx < width) out(' ', buffer, idx++, maxlen); in _etoa()
561 static int _vsnprintf(out_fct_type out, char *buffer, const size_t maxlen, const char *format, va_l… in _vsnprintf() argument
570 out = _out_null; in _vsnprintf()
577 out(*format, buffer, idx++, maxlen); in _vsnprintf()
727 idx = _ntoa_long_long(out, buffer, idx, maxlen, in _vsnprintf()
733 … idx = _ntoa_long(out, buffer, idx, maxlen, (unsigned long) (value > 0 ? value : 0 - value), in _vsnprintf()
739 … idx = _ntoa_long(out, buffer, idx, maxlen, (unsigned int) (value > 0 ? value : 0 - value), in _vsnprintf()
746 … idx = _ntoa_long_long(out, buffer, idx, maxlen, va_arg(va, unsigned long long), false, base, in _vsnprintf()
750 … idx = _ntoa_long(out, buffer, idx, maxlen, va_arg(va, unsigned long), false, base, precision, in _vsnprintf()
758 … idx = _ntoa_long(out, buffer, idx, maxlen, value, false, base, precision, width, flags); in _vsnprintf()
768 idx = _ftoa(out, buffer, idx, maxlen, va_arg(va, double), precision, width, flags); in _vsnprintf()
770 for(int i=0;i<2;i++) out('?', buffer, idx++, maxlen); in _vsnprintf()
782 idx = _etoa(out, buffer, idx, maxlen, va_arg(va, double), precision, width, flags); in _vsnprintf()
784 for(int i=0;i<2;i++) out('?', buffer, idx++, maxlen); in _vsnprintf()
794 out(' ', buffer, idx++, maxlen); in _vsnprintf()
798 out((char) va_arg(va, int), buffer, idx++, maxlen); in _vsnprintf()
802 out(' ', buffer, idx++, maxlen); in _vsnprintf()
818 out(' ', buffer, idx++, maxlen); in _vsnprintf()
823 out(*(p++), buffer, idx++, maxlen); in _vsnprintf()
828 out(' ', buffer, idx++, maxlen); in _vsnprintf()
841 … idx = _ntoa_long_long(out, buffer, idx, maxlen, (uintptr_t) va_arg(va, void*), false, 16U, in _vsnprintf()
845 … idx = _ntoa_long(out, buffer, idx, maxlen, (unsigned long) ((uintptr_t) va_arg(va, void*)), false, in _vsnprintf()
855 out('%', buffer, idx++, maxlen); in _vsnprintf()
860 out(*format, buffer, idx++, maxlen); in _vsnprintf()
867 out((char) 0, buffer, idx < maxlen ? idx : maxlen - 1U, maxlen); in _vsnprintf()
896 int vfctprintf(void (*out)(char character, void *arg), void *arg, const char *format, va_list va) { in vfctprintf()
897 const out_fct_wrap_type out_fct_wrap = {out, arg}; in vfctprintf()