3 ms·
idx should be a size_t.
by kevin_thibedeau 11mo ago
idx should be a size_t.
- einpoklum 11mo agoActually, 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: https://stackoverflow.com/q/45740276/1593077 https://stackoverflow.com/q/45740276/1593077