Re:Generalizing Printf in C
by kevin_thibedeau on Friday November 28, 2025 @03:32PM
(#46082509)
idx should be a size_t.
[ Parent
| on HN ]
Actually, there are historical reasons why `int` may be used. Look at the definition of the %n format specifier - it expects an `int *` argument. And all of the famirly functions return `int`'s ... see also: