name_test.c revision c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfee
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <isc/assertions.h>
static void
printf("\n");
}
int
char s[1000];
unsigned char b[255];
unsigned char o[255];
unsigned char c[255];
unsigned int tbytes;
argc--;
argv++;
if (argc > 0) {
else {
dns_rootname, 0,
&target);
if (result != 0) {
"dns_name_fromtext() failed: %d\n",
result);
exit(1);
}
}
} else
if (argc > 1) {
else {
dns_rootname, 0,
&target);
if (result != 0) {
"dns_name_fromtext() failed: %d\n",
result);
exit(1);
}
}
} else
&target);
if (result == DNS_R_SUCCESS) {
dns_name_toregion(&name, &r);
#ifndef QUIET
print_wirename(&r);
printf("%u labels, %u bytes.\n",
r.length);
#endif
} else
if (result == 0) {
if (result == DNS_R_SUCCESS) {
#ifndef QUIET
#endif
} else
}
#ifndef QUIET
int i;
if (i < 0)
printf("<, ");
else if (i > 0)
printf(">, ");
else
printf("=, ");
if (!b)
printf("not ");
printf("subdomain\n");
}
#endif
}
return (0);
}