Lines Matching refs:outptr

85  * value and return a pointer in *outptr to a newly allocated memory area
88 * Returns 0 and nullifies *outptr upon inability to return a string value.
90 * Returns 1 and sets *outptr when returning a dynamically allocated string.
94 static ares_bool_t get_REG_SZ(HKEY hKey, const char *leafKeyName, char **outptr)
99 *outptr = NULL;
109 *outptr = ares_malloc(size + 1);
110 if (!*outptr) {
115 res = RegQueryValueExA(hKey, leafKeyName, 0, NULL, (unsigned char *)*outptr,
118 ares_free(*outptr);
119 *outptr = NULL;
124 *(*outptr + size) = '\0';
290 * in *outptr to a newly allocated memory area holding a null-terminated
293 * Returns 0 and nullifies *outptr upon inability to return DNSes string.
295 * Returns 1 and sets *outptr when returning a dynamically allocated string.
302 static ares_bool_t get_DNS_Windows(char **outptr)
327 *outptr = NULL;
493 /* Add that to outptr (if we can). */
494 commajoin(outptr, addresses[i].text);
506 if (!*outptr) {
517 * whitespace separated to outptr. If the Search List is empty, the
518 * "Primary Dns Suffix" is written to outptr.
520 * Returns 0 and nullifies *outptr upon inability to return the suffix list.
522 * Returns 1 and sets *outptr when returning a dynamically allocated string.
526 static ares_bool_t get_SuffixList_Windows(char **outptr)
535 *outptr = NULL;
544 get_REG_SZ(hKey, SEARCHLIST_KEY, outptr);
546 commajoin(outptr, p);
556 commajoin(outptr, p);
568 commajoin(outptr, p);
590 commajoin(outptr, p);
595 commajoin(outptr, p);
600 commajoin(outptr, p);
609 return *outptr != NULL ? ARES_TRUE : ARES_FALSE;