#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
int dn_expand(unsigned char *message_pointer,
unsigned char *end_of_message,
unsigned char *compressed_domain_name,
unsigned char *expanded_domain_name,
int answer_buffer_length)
The dn_expand() function is used to expand a compressed domain name.
None.
dn_expand() returns an integer. Possible values are:
The dn_expand() routine expands the domain name pointed to by compressed_domain_name. The result is placed in expanded_domain_name.
When the dn_expand() function fails, it does not set specific errno or h_errno values. An error occurs under the following conditions:
| Top | UNIX-Type APIs | APIs by category |