Re: [PATCH v3 0/4] Make sscanf() stricter

Alexey Dobriyan
2023-06-12T12:00:04Z

> + bool _placeholder;
> + return simple_strntoull(cp, INT_MAX, endp, base, &_placeholder);

This can be done without introducing dummy variables:

void f(bool *b)
{
}

f((bool[1]){});

> > lib/vsprintf.c:3727:26: error: unknown conversion type character ‘!’ in format [-Werror=format=]
> So NAK.

Yeah, ! should go after format specifier like it does for %p.