Lines Matching refs:buf

168 static size_t _out_rev(out_fct_type out, char * buffer, size_t idx, size_t maxlen, const char * buf  in _out_rev()  argument
183 out(buf[--len], buffer, idx++, maxlen); in _out_rev()
197 static size_t _ntoa_format(out_fct_type out, char * buffer, size_t idx, size_t maxlen, char * buf, … in _ntoa_format() argument
206 buf[len++] = '0'; in _ntoa_format()
209 buf[len++] = '0'; in _ntoa_format()
222 buf[len++] = 'x'; in _ntoa_format()
225 buf[len++] = 'X'; in _ntoa_format()
228 buf[len++] = 'b'; in _ntoa_format()
231 buf[len++] = '0'; in _ntoa_format()
237 buf[len++] = '-'; in _ntoa_format()
240 buf[len++] = '+'; // ignore the space if the '+' exists in _ntoa_format()
243 buf[len++] = ' '; in _ntoa_format()
247 return _out_rev(out, buffer, idx, maxlen, buf, len, width, flags); in _ntoa_format()
254 char buf[PRINTF_NTOA_BUFFER_SIZE]; in _ntoa_long() local
266buf[len++] = digit < 10 ? '0' + digit : (flags & FLAGS_UPPERCASE ? 'A' : 'a') + digit - 10; in _ntoa_long()
271 …return _ntoa_format(out, buffer, idx, maxlen, buf, len, negative, (unsigned int)base, prec, width,… in _ntoa_long()
279 char buf[PRINTF_NTOA_BUFFER_SIZE]; in _ntoa_long_long() local
291buf[len++] = digit < 10 ? '0' + digit : (flags & FLAGS_UPPERCASE ? 'A' : 'a') + digit - 10; in _ntoa_long_long()
296 …return _ntoa_format(out, buffer, idx, maxlen, buf, len, negative, (unsigned int)base, prec, width,… in _ntoa_long_long()
312 char buf[PRINTF_FTOA_BUFFER_SIZE]; in _ftoa() local
351 buf[len++] = '0'; in _ftoa()
388 buf[len++] = (char)(48U + (frac % 10U)); in _ftoa()
395 buf[len++] = '0'; in _ftoa()
399 buf[len++] = '.'; in _ftoa()
405 buf[len++] = (char)(48 + (whole % 10)); in _ftoa()
417 buf[len++] = '0'; in _ftoa()
423 buf[len++] = '-'; in _ftoa()
426 buf[len++] = '+'; // ignore the space if the '+' exists in _ftoa()
429 buf[len++] = ' '; in _ftoa()
433 return _out_rev(out, buffer, idx, maxlen, buf, len, width, flags); in _ftoa()