mirror of https://git.musl-libc.org/git/musl
Browse Source
the text of the specification for getopt's handling of options that require an argument, which requires updating optarg and optind, does not exclude the error case where the end of the argument list has been reached. in that case, it is expected that optarg be assigned argv[argc] (normally null) and optind be incremented by 2, resulting in a value of argc+1.master
1 changed files with 6 additions and 6 deletions
Loading…
Reference in new issue