MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / encode_hex

Function encode_hex

tinyemu/fs_utils.c:261–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void encode_hex(char *str, const uint8_t *buf, int len)
262{
263 int i;
264 for(i = 0; i < len; i++)
265 sprintf(str + 2 * i, "%02x", buf[i]);
266}
267
268int decode_hex(uint8_t *buf, const char *str, int len)
269{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected