From 0c061be50f8d6cb54a9c3aae14e75aafcc4c0288 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 6 Jul 1996 21:13:26 +0000 Subject: (argp_program_version_hook): Type & doc updated. "argp.h": New include. --- libshouldbeinlibc/argp-pvh.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libshouldbeinlibc') diff --git a/libshouldbeinlibc/argp-pvh.c b/libshouldbeinlibc/argp-pvh.c index e9e176fa..a58c1923 100644 --- a/libshouldbeinlibc/argp-pvh.c +++ b/libshouldbeinlibc/argp-pvh.c @@ -20,8 +20,11 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include "argp.h" + /* If set by the user program to a non-zero value, then a default option --version is added (unless the ARGP_NO_HELP flag is used), which calls - this function and exits (unless the ARGP_NO_EXIT flag is used). This - variable takes precedent over ARGP_PROGRAM_VERSION. */ -void (*argp_program_version_hook) () = 0; + this function with a stream to print the version to and a pointer to the + current parsing state, and then exits (unless the ARGP_NO_EXIT flag is + used). This variable takes precedent over ARGP_PROGRAM_VERSION. */ +void (*argp_program_version_hook) (FILE *stream, struct argp_state *state) = 0; -- cgit v1.2.3