Searched defs:hex (Results 1 - 7 of 7) sorted by relevance

/bind-9.11.3/contrib/idn/idnkit-1.0-src/lib/
H A Ddebug.c57 static char *hex = "0123456789abcdef"; variable
78 *p++ = hex[c >> 4];
79 *p++ = hex[c & 15];
114 *p++ = hex[c >> 4];
115 *p++ = hex[c & 15];
152 *p++ = hex[(*s >> 28) & 0x0f];
153 *p++ = hex[(*s >> 24) & 0x0f];
157 *p++ = hex[(*s >> 20) & 0x0f];
158 *p++ = hex[(*s >> 16) & 0x0f];
162 *p++ = hex[(*
[all...]
/bind-9.11.3/lib/isc/
H A Dhex.c9 /* $Id: hex.c,v 1.20 2008/09/25 04:02:39 tbox Exp $ */
18 #include <isc/hex.h>
39 static const char hex[] = "0123456789ABCDEF"; variable
53 buf[0] = hex[(source->base[0] >> 4) & 0xf];
54 buf[1] = hex[(source->base[0]) & 0xf];
70 * State of a hex decoding process in progress.
75 int digits; /*%< Number of buffered hex digits */
91 if ((s = strchr(hex, toupper(c))) == NULL)
93 ctx->val[ctx->digits++] = (int)(s - hex);
/bind-9.11.3/lib/isc/unix/
H A Dinterfaceiter.c210 static const char hex[] = "0123456789abcdef"; local
211 byte = ((strchr(hex, address[i * 2]) - hex) << 4) |
212 (strchr(hex, address[i * 2 + 1]) - hex);
/bind-9.11.3/lib/dns/tests/
H A Drdata_test.c17 #include <isc/hex.h>
91 char buf[1024], hex[BUFSIZ]; local
103 hex, sizeof(hex)),
114 hex, sizeof(hex)),
123 hex, sizeof(hex)),
129 hex, sizeof(hex)),
212 char hex[BUFSIZ]; local
[all...]
/bind-9.11.3/contrib/idn/idnkit-1.0-src/lib/tests/
H A Dtestsuite.c486 static const char hex[] = {"0123456789abcdef"}; local
501 *dst++ = hex[*(const unsigned char *)src >> 4];
502 *dst++ = hex[*src & 0x0f];
514 static const char hex[] = {"0123456789abcdef"}; local
530 *dst++ = hex[(*src >> 20) & 0x0f];
533 *dst++ = hex[(*src >> 16) & 0x0f];
535 *dst++ = hex[(*src >> 12) & 0x0f];
536 *dst++ = hex[(*src >> 8) & 0x0f];
537 *dst++ = hex[(*src >> 4) & 0x0f];
538 *dst++ = hex[*sr
[all...]
/bind-9.11.3/lib/dns/
H A Dmaster.c629 static const char *hex = "0123456789abcdef0123456789ABCDEF"; variable
651 char val = hex[(value & 0x0f) + ((mode == 'n') ? 0 : 16)];
H A Dresolver.c7516 static const char hex[17] = "0123456789abcdef"; local
7522 /* Allocate buffer for storing hex version of the NSID */
7531 /* Convert to hex */
7535 *p++ = hex[(nsid[i] >> 4) & 0xf];
7536 *p++ = hex[nsid[i] & 0xf];

Completed in 49 milliseconds