sortix-mirror/libc/getopt
Juhani Krekelä 610b51ffdc Fix getopt_long(3) handling of required argument at the end of argv.
Previously if argv ended with a long option that required an argument
followed by said argument, getopt_long(3) would generate an error saying
that the option requires an argument even though it was provided. This
was because the comparison of optind against argc did not account for
the fact that optind had already been incremented, causing an
off-by-one.
2023-05-16 02:17:22 +03:00
..
getopt.c Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
getopt_long.c Fix getopt_long(3) handling of required argument at the end of argv. 2023-05-16 02:17:22 +03:00