version 1.1, 2011/07/24 18:15:14 |
version 1.6, 2020/06/15 01:37:15 |
|
|
#ifdef HAVE_GETSUBOPT |
/* $Id$ */ |
|
|
int dummy; |
|
|
|
#else |
|
|
|
/* $OpenBSD$ */ |
/* $OpenBSD$ */ |
|
|
/*- |
/*- |
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
#include "config.h" |
|
|
#include <unistd.h> |
#include <unistd.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
/* |
|
* The SVID interface to getsubopt provides no way of figuring out which |
|
* part of the suboptions list wasn't matched. This makes error messages |
|
* tricky... The extern variable suboptarg is a pointer to the token |
|
* which didn't match. |
|
*/ |
|
char *suboptarg; |
|
|
|
int |
int |
getsubopt(char **optionp, char * const *tokens, char **valuep) |
getsubopt(char **optionp, char * const *tokens, char **valuep) |
{ |
{ |
int cnt; |
int cnt; |
|
char *suboptarg; |
char *p; |
char *p; |
|
|
suboptarg = *valuep = NULL; |
suboptarg = *valuep = NULL; |
Line 96 getsubopt(char **optionp, char * const *tokens, char * |
|
Line 85 getsubopt(char **optionp, char * const *tokens, char * |
|
return(cnt); |
return(cnt); |
return(-1); |
return(-1); |
} |
} |
|
|
#endif |
|