Re: [Keyrings] [PATCH 1/9] Provide a binary to hex conversion function

From: David Howells
Date: Fri Sep 12 2014 - 16:53:23 EST


Joe Perches <joe@xxxxxxxxxxx> wrote:

> I think Mimi meant using something like:
>
> char *bin2hex(char *dst, const void *src, size_t count)
> {
> const unsigned char *_src = src;
>
> while (count--)
> dst = hex_byte_pack(dst, *_src++);
>
> return dst;
> }

Ah, I see - yeah, that'd work.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/