
23 May
2018
23 May
'18
6:33 p.m.
Hi Mario,
On 23 May 2018 at 06:09, Mario Six mario.six@gdsys.cc wrote:
Especially for commands, it is useful to be able to turn a hexadecimal string into its binary representation.
Hence, import the hex_to_bin, bin2hex, and hex2bin functions from the Linux kernel.
Signed-off-by: Mario Six mario.six@gdsys.cc
v1 -> v2: New in v2
include/linux/kernel.h | 4 + lib/Makefile | 1 + lib/hexdump.c | 321 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 326 insertions(+) create mode 100644 lib/hexdump.c
Does Linux have any tests for this code?
Regards, Simon