Return to apps.c CVS log | Up to [local] / src / usr.bin / openssl |
version 1.17, 2014/12/28 15:05:38 | version 1.18, 2014/12/28 15:48:52 | ||
---|---|---|---|
|
|
||
} | } | ||
int | int | ||
options_parse(int argc, char **argv, struct option *opts, char **unnamed) | options_parse(int argc, char **argv, struct option *opts, char **unnamed, | ||
int *argsused) | |||
{ | { | ||
const char *errstr; | const char *errstr; | ||
struct option *opt; | struct option *opt; | ||
|
|
||
/* Single unnamed argument (without leading hyphen). */ | /* Single unnamed argument (without leading hyphen). */ | ||
if (*p++ != '-') { | if (*p++ != '-') { | ||
if (argsused != NULL) | |||
goto done; | |||
if (unnamed == NULL) | if (unnamed == NULL) | ||
goto unknown; | goto unknown; | ||
if (*unnamed != NULL) | if (*unnamed != NULL) | ||
|
|
||
return (1); | return (1); | ||
} | } | ||
} | } | ||
done: | |||
if (argsused != NULL) | |||
*argsused = i; | |||
return (0); | return (0); | ||