Lines Matching refs:fmt
234 long_double_format (char const *fmt, struct layout *layout) in long_double_format() argument
242 for (i = 0; ! (fmt[i] == '%' && fmt[i + 1] != '%'); i += (fmt[i] == '%') + 1) in long_double_format()
244 if (!fmt[i]) in long_double_format()
246 _("format %s has no %% directive"), quote (fmt)); in long_double_format()
251 i += strspn (fmt + i, "-+#0 '"); in long_double_format()
252 i += strspn (fmt + i, "0123456789"); in long_double_format()
253 if (fmt[i] == '.') in long_double_format()
256 i += strspn (fmt + i, "0123456789"); in long_double_format()
260 has_L = (fmt[i] == 'L'); in long_double_format()
262 if (fmt[i] == '\0') in long_double_format()
263 error (EXIT_FAILURE, 0, _("format %s ends in %%"), quote (fmt)); in long_double_format()
264 if (! strchr ("efgaEFGA", fmt[i])) in long_double_format()
266 _("format %s has unknown %%%c directive"), quote (fmt), fmt[i]); in long_double_format()
268 for (i++; ; i += (fmt[i] == '%') + 1) in long_double_format()
269 if (fmt[i] == '%' && fmt[i + 1] != '%') in long_double_format()
271 quote (fmt)); in long_double_format()
272 else if (fmt[i]) in long_double_format()
278 memcpy (ldfmt, fmt, length_modifier_offset); in long_double_format()
281 fmt + length_modifier_offset + has_L); in long_double_format()
292 print_numbers (char const *fmt, struct layout layout, in print_numbers() argument
305 if (printf (fmt, x) < 0) in print_numbers()
327 x_strlen = asprintf (&x_str, fmt, x); in print_numbers()
339 int x0_strlen = asprintf (&x0_str, fmt, x0); in print_numbers()