Paul Eggert
91e95f1f86
printf: diagnose empty args correctly
...
Also, port better to macOS.
* src/printf.c (verify_numeric): Don’t assume that when s == end
then errno is zero; it is EINVAL on macOS, and POSIX allows this.
(print_direc): Treat missing arg as zero for numeric conversions,
and as an empty string for the others.
(print_formatted): Use null pointer, not an empty string,
to represent missing arg.
* tests/printf/printf.sh: Test empty and space widths and precisions.
2024-11-19 08:41:34 -08:00
..
2024-01-01 13:27:23 +00:00
2024-04-06 15:18:27 -07:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-03-25 12:12:19 +00:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-11-02 19:57:35 +00:00
2024-02-26 17:33:02 +00:00
2024-01-17 23:59:49 +00:00
2024-01-17 23:59:49 +00:00
2024-01-01 13:27:23 +00:00
2024-05-16 23:30:55 -07:00
2024-10-02 16:43:34 +01:00
2024-01-01 13:27:23 +00:00
2024-03-22 13:12:52 +00:00
2024-01-01 13:27:23 +00:00
2024-09-27 17:42:58 -07:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-08-10 19:30:01 -07:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-08-19 14:47:07 +01:00
2024-02-27 14:27:04 +00:00
2024-01-01 13:27:23 +00:00
2024-11-12 11:43:45 +00:00
2024-11-02 19:57:35 +00:00
2024-01-01 13:27:23 +00:00
2024-05-03 10:18:50 +01:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-03-27 12:41:33 +00:00
2024-01-01 13:27:23 +00:00
2024-11-19 08:41:34 -08:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-01-17 23:59:49 +00:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-02-27 14:27:04 +00:00
2024-01-18 16:52:36 +00:00
2024-07-16 01:54:20 +00:00
2024-05-20 15:15:05 -07:00
2024-01-01 13:27:23 +00:00
2024-08-10 19:30:01 -07:00
2024-11-02 14:03:49 +00:00
2024-11-01 12:49:44 +00:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-03-26 16:53:09 +00:00
2024-02-26 17:33:02 +00:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2015-11-06 16:40:42 +00:00
2024-01-01 13:27:23 +00:00
2011-04-13 11:18:48 +01:00
2012-09-14 10:20:03 +02:00
2006-08-16 20:11:42 +00:00
2024-11-12 11:20:47 +00:00
2015-11-10 13:03:33 +00:00
2024-01-01 13:27:23 +00:00
2024-01-01 13:27:23 +00:00
2021-05-12 22:14:11 +01:00