from small one page howto to huge articles all in one place
Last additions:
May 25th. 2007:
April, 26th. 2006:
| You are here: manpages
getopt_long_only
Section: C Library Functions (3) Updated: 202-1-07 Index
Return to Main Contents
NAME
getopt_long_only
- parse long comman-line options
LIBRARY
Standard C library
( libc,~ -lc)
SYNOPSIS
#define _GNU_SOURCE
#include <getopt.h>
int getopt_long_only(int argc, char *argv[],
const char *optstring,
const struct option *longopts, int *longindex);
DESCRIPTION
getopt_long_only()
is like
getopt_long(3),
but [aq]-[aq] as well
as "--" can indicate a long option.
If an option that starts with [aq]-[aq]
(not "--") doesn't match a long option, but does match a short option,
it is parsed as a short option instead.
ATTRIBUTES
For an explanation of the terms used in this section, see
attributes(7).
| Interface | Attribute | Value
|
|
getopt_long_only()
| Thread safety |
M-Unsafe race:getopt env
|
STANDARDS
GNU.
SEE ALSO
getopt(1),
getopt(3),
getopt_long(3),
getsubopt(3)
Index
- NAME
-
- LIBRARY
-
- SYNOPSIS
-
- DESCRIPTION
-
- ATTRIBUTES
-
- STANDARDS
-
- SEE ALSO
-
|