| 657 | } |
| 658 | |
| 659 | static int byteval(const char *hex, unsigned char *dst) |
| 660 | { |
| 661 | int v1 = hexval(hex[0]); |
| 662 | int v2 = hexval(hex[1]); |
| 663 | |
| 664 | if(v1 < 0 || v2 < 0) |
| 665 | return 1; |
| 666 | |
| 667 | *dst = v1 * 16 + v2; |
| 668 | return 0; |
| 669 | } |
| 670 | |
| 671 | int str_hex_decode(void *dst, int dst_size, const char *src) |
| 672 | { |
no test coverage detected