38 #ifdef STRCASECMP_IN_STRINGS_H
130 T_NSAP_PTR,
"NSAP_PTR",
192 for (i = 0; i <
sizeof(dns_type_map) /
sizeof(dns_type_map[0]); i++)
193 if (dns_type_map[i].type == type)
194 return (dns_type_map[i].
text);
207 for (i = 0; i <
sizeof(dns_type_map) /
sizeof(dns_type_map[0]); i++)
208 if (
strcasecmp(dns_type_map[i].text, text) == 0)
209 return (dns_type_map[i].
type);
const char * dns_strtype(unsigned type)
VSTRING * vstring_alloc(ssize_t len)
VSTRING * vstring_sprintf(VSTRING *vp, const char *format,...)
int strcasecmp(const char *s1, const char *s2)
unsigned dns_type(const char *text)