File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2201
2201
\begin {tabbing }
2202
2202
stru\= ct \funnm {option} \{ \\
2203
2203
\> const char *name; \textrm {/* name of the option */} \\
2204
- \> int has\_ arg; \textrm {/* value : yes, no, \emsl {optional} */} \\
2204
+ \> int has\_ arg; \textrm {/* meaning : yes, no, \emsl {optional} */} \\
2205
2205
\> int *flag; \textrm {/*~}\= \textrm {if \texttt {NULL }, the function returns
2206
2206
\texttt {val }}, \\
2207
2207
\>\> \textrm {otherwise returns 0}
2224
2224
\item If \texttt {flag } is set, \texttt {getopt\_ long } returns 0, which makes
2225
2225
these long options without the short variant get processed in a single branch of
2226
2226
\texttt {case }.
2227
+ \item The actual permitted values of the \texttt {has\_ arg } member are defines
2228
+ \texttt {no\_ argument }, \texttt {required\_ argument } and \texttt {optional\_ argument }.
2227
2229
\item There is also \texttt {getopt\_ long\_ only }, which allows long options
2228
2230
to begin with a single dash (\texttt {-option }).
2229
2231
\item The \texttt {getopt\_ long } function is possible to use in two ways.
You can’t perform that action at this time.
0 commit comments