Add function to convert a hex string to binary.

This commit is contained in:
2019-10-17 22:11:57 +01:00
parent 18f7dda4f8
commit 532b58ce2e
3 changed files with 65 additions and 1 deletions

View File

@@ -18,7 +18,9 @@
#ifndef DICMOTE_H
#define DICMOTE_H
#include <stddef.h>
#include <stdint.h>
#define DICMOTE_NAME "DiscImageChef Remote Server"
#define DICMOTE_VERSION "0.99"
#define DICMOTE_PORT 6666
@@ -401,5 +403,7 @@ int32_t SendScsiCommand(int device_fd,
uint32_t cdb_len,
uint32_t* buf_len,
uint32_t* sense_len);
int hexchr2bin(const char hex, char* out);
size_t hexs2bin(const char* hex, unsigned char** out);
#endif