![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
Hexadecimal encode/decode helpers. More...
Include dependency graph for n_hex.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| unsigned char * | n_hex_decode (const char *hex, size_t *out_len) |
| decode a hex string (ASCII whitespace between digits is ignored) into a freshly allocated, NUL-terminated byte buffer; *out_len receives the decoded byte count. | |
| N_STR * | n_hex_encode (const unsigned char *data, size_t len) |
| encode len bytes of data as a lowercase hex N_STR (2*len characters); free with free_nstr. | |