slcl/hex.h
Xavier Del Campo Romero ad7fb045ad
Move decode_hex into its own file
- Error detection against strotul(3) has been improved, as done in other
places.
- New function encode_hex has been implemented, which will be used
by future commits.
2023-03-09 01:14:10 +01:00

10 lines
198 B
C

#ifndef HEX_H
#define HEX_H
#include <stddef.h>
int hex_encode(const void *buf, char *hex, size_t buflen, size_t hexlen);
int hex_decode(const char *hex, void *buf, size_t n);
#endif /* HEX_H */