Re: [PATCH v2 04/20] t0040-parse-options: test parse_options() with various 'parse_opt_flags'
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 19, 2022, 18:18 UTC
- Message-ID
- <xmqqczcwksgj.fsf@gitster.g>
- In-Reply-To
- <20220819160411.1791200-5-szeder.dev@gmail.com>
SZEDER Gábor <szeder.dev@gmail.com> writes:
Show 5 quoted lines
> +static void print_args(int argc, const char **argv)
> +{
> + for (int i = 0; i < argc; i++)
> + printf("arg %02d: %s\n", i, argv[i]);
> +}It is not November 2022 yet (cf. Documentation/CodingGuidelines).
Curious why "%02d", not "%d", or autoscale for cases where argc is larger than 99, but I'll let it pass (iow no need to reroll only to "fix" it).