From 9d3a83a2ef8dd13ed2f88f3b8dc6b0c663f10c6e Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 5 Feb 1996 23:39:55 +0000 Subject: (struct argp_state): Add ARG_NUM field. --- libshouldbeinlibc/argp.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libshouldbeinlibc/argp.h') diff --git a/libshouldbeinlibc/argp.h b/libshouldbeinlibc/argp.h index c9c98b31..5b652dd2 100644 --- a/libshouldbeinlibc/argp.h +++ b/libshouldbeinlibc/argp.h @@ -157,6 +157,12 @@ struct argp_state /* The flags supplied to argp_parse. May be modified. */ unsigned flags; + + /* While calling a parsing function with a key of ARGP_KEY_ARG, this is the + number of the current arg, starting at zero, and incremented after each + such call returns. At all other times, this is the number of such + arguments that have been processed. */ + unsigned arg_num; }; /* Flags for argp_parse (note that the defaults are those that are -- cgit v1.2.3