mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
(getopt_long, getopt_long_only): Include const in type of longopts parameter.
This commit is contained in:
parent
1d05224768
commit
604febbae0
@ -224,7 +224,7 @@ was seen.
|
|||||||
|
|
||||||
@comment getopt.h
|
@comment getopt.h
|
||||||
@comment GNU
|
@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}).
|
Decode options from the vector @var{argv} (whose length is @var{argc}).
|
||||||
The argument @var{shortopts} describes the short options to accept, just as
|
The argument @var{shortopts} describes the short options to accept, just as
|
||||||
it does in @code{getopt}. The argument @var{longopts} describes the long
|
it does in @code{getopt}. The argument @var{longopts} describes the long
|
||||||
@ -277,7 +277,7 @@ getopt functionality there is one more function available.
|
|||||||
|
|
||||||
@comment getopt.h
|
@comment getopt.h
|
||||||
@comment GNU
|
@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
|
The @code{getopt_long_only} function is equivalent to the
|
||||||
@code{getopt_long} function but it allows to specify the user of the
|
@code{getopt_long} function but it allows to specify the user of the
|
||||||
|
Loading…
Reference in New Issue
Block a user