diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-08-22 19:29:56 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-08-22 19:29:56 -0400 |
commit | 6aeb131b4c1aee30d7f7125a8a88ce6f41172f01 (patch) | |
tree | cf39f9b7af03f4525a4aa297317bbcf754891116 /src/stdio/vfprintf.c | |
parent | fix FP_ILOGB0 and FP_ILOGBNAN definitions to be valid for use in #if (diff) | |
download | grovel-6aeb131b4c1aee30d7f7125a8a88ce6f41172f01.tar.gz grovel-6aeb131b4c1aee30d7f7125a8a88ce6f41172f01.tar.xz |
getopt: update optarg and optind correctly on missing argument
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.
Diffstat (limited to 'src/stdio/vfprintf.c')
0 files changed, 0 insertions, 0 deletions