Lines Matching refs:chars_printed
13 #define CHECK_AND_PUT_CHAR(buf, size, chars_printed, ch) \ argument
15 if ((chars_printed) < (size)) { \
19 (chars_printed)++; \
22 static void string_print(char **s, size_t n, size_t *chars_printed, in string_print() argument
26 CHECK_AND_PUT_CHAR(*s, n, *chars_printed, *str); in string_print()
31 static void unsigned_num_print(char **s, size_t n, size_t *chars_printed, in unsigned_num_print() argument
56 (*chars_printed) += (size_t)padn; in unsigned_num_print()
58 (*chars_printed) += (size_t)width; in unsigned_num_print()
61 if (*chars_printed < n) { in unsigned_num_print()
113 size_t chars_printed = 0U; in vsnprintf() local
138 CHECK_AND_PUT_CHAR(s, n, chars_printed, '%'); in vsnprintf()
168 CHECK_AND_PUT_CHAR(s, n, chars_printed, in vsnprintf()
175 unsigned_num_print(&s, n, &chars_printed, in vsnprintf()
180 string_print(&s, n, &chars_printed, str); in vsnprintf()
184 unsigned_num_print(&s, n, &chars_printed, in vsnprintf()
190 string_print(&s, n, &chars_printed, "0x"); in vsnprintf()
193 unsigned_num_print(&s, n, &chars_printed, in vsnprintf()
200 unsigned_num_print(&s, n, &chars_printed, in vsnprintf()
216 CHECK_AND_PUT_CHAR(s, n, chars_printed, *fmt); in vsnprintf()
225 return (int)chars_printed; in vsnprintf()