This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Patch for getopt docs
- To: <libc-alpha at sources dot redhat dot com>
- Subject: Patch for getopt docs
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Tue, 30 Oct 2001 01:14:22 +0000 (GMT)
The glibc manual fails to include the const in the type of the
longopts parameter of the getopt_long and getopt_long_only functions.
Patch:
2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
* manual/getopt.texi (getopt_long, getopt_long_only): Include
const in type of longopts parameter.
--- manual/getopt.texi.orig Fri May 25 11:29:29 2001
+++ manual/getopt.texi Tue Oct 30 01:10:50 2001
@@ -224,7 +224,7 @@
@comment getopt.h
@comment GNU
-@deftypefun int getopt_long (int @var{argc}, char *const *@var{argv}, const char *@var{shortopts}, struct option *@var{longopts}, int *@var{indexptr})
+@deftypefun int getopt_long (int @var{argc}, char *const *@var{argv}, const char *@var{shortopts}, const struct option *@var{longopts}, int *@var{indexptr})
Decode options from the vector @var{argv} (whose length is @var{argc}).
The argument @var{shortopts} describes the short options to accept, just as
it does in @code{getopt}. The argument @var{longopts} describes the long
@@ -277,7 +277,7 @@
@comment getopt.h
@comment GNU
-@deftypefun int getopt_long_only (int @var{argc}, char *const *@var{argv}, const char *@var{shortopts}, struct option *@var{longopts}, int *@var{indexptr})
+@deftypefun int getopt_long_only (int @var{argc}, char *const *@var{argv}, const char *@var{shortopts}, const struct option *@var{longopts}, int *@var{indexptr})
The @code{getopt_long_only} function is equivalent to the
@code{getopt_long} function but it allows to specify the user of the
--
Joseph S. Myers
jsm28@cam.ac.uk