Files
ladybird/Userland/Libraries/LibC
Tim Schumacher 515f31339c LibC: Correctly reset the getopt state on optind = 1
The Linux `getopt_long` manpage tells users to reset `optind` to 1 when
scanning the same argument vector or a new argument vector again. This
makes sense, since `optind` denotes the _next_ option to be processed.

The behavior of setting `optind` to 0 doesn't seem to be specified
anywhere, so let's also remove that comment from `unistd.h`.
2023-03-12 22:09:09 +01:00
..
2022-12-28 11:53:41 +01:00
2022-12-28 11:53:41 +01:00
2023-02-08 19:06:42 +00:00