Changed output type of twc_hex2bin to (uint8_t *).
This commit is contained in:
parent
2af297d24b
commit
20bcc0700a
@ -32,7 +32,7 @@
|
|||||||
* Convert a hex string to it's binary equivalent of max size bytes.
|
* Convert a hex string to it's binary equivalent of max size bytes.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
twc_hex2bin(const char *hex, size_t size, char *out)
|
twc_hex2bin(const char *hex, size_t size, uint8_t *out)
|
||||||
{
|
{
|
||||||
const char *position = hex;
|
const char *position = hex;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include <tox/tox.h>
|
#include <tox/tox.h>
|
||||||
|
|
||||||
void
|
void
|
||||||
twc_hex2bin(const char *hex, size_t size, char *out);
|
twc_hex2bin(const char *hex, size_t size, uint8_t *out);
|
||||||
|
|
||||||
void
|
void
|
||||||
twc_bin2hex(const uint8_t *bin, size_t size, char *out);
|
twc_bin2hex(const uint8_t *bin, size_t size, char *out);
|
||||||
|
Loading…
Reference in New Issue
Block a user