argp-pvh.c

00001 /* Default definition for ARGP_PROGRAM_VERSION_HOOK.
00002    Copyright (C) 1996, 1997, 1999, 2004 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004    Written by Miles Bader <miles@gnu.ai.mit.edu>.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU Lesser General Public License as published by
00008    the Free Software Foundation; either version 2.1, or (at your option)
00009    any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU Lesser General Public License for more details.
00015 
00016    You should have received a copy of the GNU Lesser General Public License along
00017    with this program; if not, write to the Free Software Foundation,
00018    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
00019 
00020 #ifdef HAVE_CONFIG_H
00021 # include <config.h>
00022 #endif
00023 
00024 #include "argp.h"
00025 
00026 /* If set by the user program to a non-zero value, then a default option
00027    --version is added (unless the ARGP_NO_HELP flag is used), which calls
00028    this function with a stream to print the version to and a pointer to the
00029    current parsing state, and then exits (unless the ARGP_NO_EXIT flag is
00030    used).  This variable takes precedent over ARGP_PROGRAM_VERSION.  */
00031 void (*argp_program_version_hook) (FILE *stream, struct argp_state *state) = NULL;

Generated on Mon Feb 5 10:54:27 2007 for WvStreams by  doxygen 1.5.1