Eisenwave / cdecl-plus

Similar to cdecl.org, but with broader support for language features. Static web page which supports file protocol. Parsing and to-prose conversion happen in the front-end, resulting in instant feedback.
https://cdecl.plus/
MIT License
32 stars 4 forks source link

Precision and field width prose is too vague for printf #18

Closed Eisenwave closed 1 year ago

Eisenwave commented 1 year ago

For a call printf("%.*d", x), we get the prose:

.*: precision is read from int argument

This is not helpful enough, because the meaning of precision and field width is different for any kind of format specifier. It should be more specific, i.e. it should tell the user:

.*: minimum digit count is read from int argument (fill missing with '0')