6 * str/hex - hex-to-string conversions and vice-versa
8 * This code contains simple routines for hexidecimal strings.
10 * License: CC0 (Public domain)
11 * Author: Rusty Russell <rusty@rustcorp.com.au>
14 * int main(int argc, char *argv[])
18 * for (i = 1; i < argc; i++) {
19 * char str[hex_str_size(strlen(argv[i]))];
21 * hex_encode(str, sizeof(str), argv[i], strlen(argv[i]));
28 int main(int argc, char *argv[])
30 /* Expect exactly one argument */
34 if (strcmp(argv[1], "depends") == 0) {