musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/misc/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/getopt.c')
-rw-r--r--src/misc/getopt.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/getopt.c b/src/misc/getopt.c
index 52aa7a3a..e77e460a 100644
--- a/src/misc/getopt.c
+++ b/src/misc/getopt.c
@@ -55,7 +55,7 @@ int getopt(int argc, char * const argv[], const char *optstring)
optpos = 0;
}
- if (optstring[0] == '-')
+ if (optstring[0] == '-' || optstring[0] == '+')
optstring++;
i = 0;
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月08日 09:14:12 +0000

AltStyle によって変換されたページ (->オリジナル) /