Searched refs:hexbuf (Results 1 – 3 of 3) sorted by relevance
79 uint8_t *hexbuf = xmalloc(LDNS_MAX_PACKETLEN); in packetbuffromfile() local90 xfree(hexbuf); in packetbuffromfile()108 hexbuf[hexbufpos] = (uint8_t) c; in packetbuffromfile()122 hexbuf[hexbufpos] = (uint8_t) c; in packetbuffromfile()148 hexbuf[hexbufpos] = (uint8_t) '0'; in packetbuffromfile()153 wirelen = hexstr2bin((char *) hexbuf, in packetbuffromfile()159 memcpy(wire, hexbuf, (size_t) hexbufpos); in packetbuffromfile()165 xfree(hexbuf); in packetbuffromfile()
469 unsigned char *hexbuf, *q; in string_to_hex() local475 if (!(hexbuf = malloc(strlen(str) >> 1))) in string_to_hex()477 for (p = (unsigned char *)str, q = hexbuf; *p; ) { in string_to_hex()484 free(hexbuf); in string_to_hex()508 *len = q - hexbuf; in string_to_hex()510 return hexbuf; in string_to_hex()513 free(hexbuf); in string_to_hex()518 free(hexbuf); in string_to_hex()
371 char *endptr, hexbuf[3]; in hex2char() local373 hexbuf[0] = in[0]; in hex2char()374 hexbuf[1] = len > 1 ? in[1] : '\0'; in hex2char()375 hexbuf[2] = '\0'; in hex2char()378 ord = strtol(hexbuf, &endptr, 16); in hex2char()