1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 00:28:48 -05:00

add ares_getopt prototype

This commit is contained in:
Yang Tse 2007-04-12 18:59:46 +00:00
parent 8aae15b630
commit b36376e12d
2 changed files with 5 additions and 1 deletions

View File

@ -218,6 +218,7 @@ int ares_parse_ns_reply(const unsigned char *abuf, int alen,
void ares_free_string(void *str); void ares_free_string(void *str);
void ares_free_hostent(struct hostent *host); void ares_free_hostent(struct hostent *host);
const char *ares_strerror(int code); const char *ares_strerror(int code);
int ares_getopt(int nargc, char * const nargv[], const char *ostr);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -44,9 +44,12 @@
* #endif * #endif
*/ */
#include "setup.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "ares.h"
/* declarations to provide consistent linkage */ /* declarations to provide consistent linkage */
extern char *optarg; extern char *optarg;
@ -61,7 +64,7 @@ char *optarg; /* argument associated with option */
#define BADCH (int)'?' #define BADCH (int)'?'
#define BADARG (int)':' #define BADARG (int)':'
#define EMSG "" #define EMSG (char *)""
/* /*
* ares_getopt -- * ares_getopt --