version 1.4, 2014/08/16 19:00:01 |
version 1.5, 2014/08/17 20:53:50 |
|
|
|
|
#else |
#else |
|
|
|
/* $Id$ */ |
/* $OpenBSD$ */ |
/* $OpenBSD$ */ |
|
|
/*- |
/*- |
|
|
#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; |