int get_line_len(const char *buf, size_t buf_len)
Get length of a string (or a line). String shall be '\0' terminated. Newline characters are not inclu...
int hexstr2hex(const char *in, size_t in_len, unsigned char *out, size_t out_len)
Convert hex string into hex Example: in = {'D', 'E', 'A', 'D'} -> out = {0xDE, 0xAD}...