From f99a4b252c98a413a67556b299dd5d37ff4328b3 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 24 Feb 2004 08:09:20 +0000 Subject: [PATCH] Add getopt_long_only() --- include/getopt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/getopt.h b/include/getopt.h index 4943d04d0d78..dca3c3d66194 100644 --- a/include/getopt.h +++ b/include/getopt.h @@ -43,7 +43,7 @@ #include /* - * GNU-like getopt_long() with 4.4BSD optreset extension. + * GNU-like getopt_long()/getopt_long_only() with 4.4BSD optreset extension. * getopt() is declared here too for GNU programs. */ #define no_argument 0 @@ -67,6 +67,8 @@ struct option { __BEGIN_DECLS int getopt_long(int, char * const *, const char *, const struct option *, int *); +int getopt_long_only(int, char * const *, const char *, + const struct option *, int *); #ifndef _GETOPT_DECLARED #define _GETOPT_DECLARED int getopt(int, char * const [], const char *);