On Mon, 6 Jul 2020 23:37:16 +0300 Ivan Dyukov <i.dyu...@samsung.com> wrote:
> + /* Error cases */ > + default: > + return -1; > + Since very little of the code is checking for errors, why return on bad format. Why not do what printf() does and ignore what is not specified. Example: r = printf("Wierd %W format\n", x); printf("returned %d\n", r); Wierd %W format returned 16