Searched refs:hex_out (Results 1 – 1 of 1) sorted by relevance
31 char *hex_out; in hex_string() local34 …hex_out = (char *) malloc(len*2 + 1); // two ascii characters per input character, plus trailing n… in hex_string()35 if (!hex_out) { goto Exit; } in hex_string()38 snprintf(hex_out + (i*2), 2, "%02x", str[i]); in hex_string()41 hex_out[len*2] = 0; // trailing null in hex_string()44 return hex_out; in hex_string()