Lines Matching refs:state
81 ares_getopt_state_t state;
98 ares_getopt_init(&state, argc, (const char **)argv);
99 while ((c = ares_getopt(&state, "dt:h?D:s:")) != -1) {
111 options.domains[options.ndomains - 1] = strdup(state.optarg);
114 if (!strcasecmp(state.optarg, "a")) {
116 } else if (!strcasecmp(state.optarg, "aaaa")) {
118 } else if (!strcasecmp(state.optarg, "u")) {
125 if (state.optarg == NULL) {
133 servers = strdup(state.optarg);
145 argc -= state.optind;
146 argv += state.optind;