#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
int res_xlate(int input_ccsid,
char *input_packet,
int input_length,
int output_ccsid,
char *output_packet,
int output_length)
The res_xlate() function is used to translate a standard DNS packet between ASCII and EBCDIC.
No authorization is required.
res_xlate() returns an integer. Possible values are:
When the res_xlate() function fails, it does not set specific errno or h_errno values. An error occurs under the following conditions:
res_xlate() returns unsuccessfully with a value of -1 if CCSID 819 is not used for either input_ccsid or output_ccsid. Also, if both input_ccsid and output_ccsid values are 819, res_xlate() returns a -1.
| Top | UNIX-Type APIs | APIs by category |