]> git.ozlabs.org Git - ccan/blobdiff - ccan/str/base32/_info
str/base32: new module.
[ccan] / ccan / str / base32 / _info
diff --git a/ccan/str/base32/_info b/ccan/str/base32/_info
new file mode 100644 (file)
index 0000000..d14f9e3
--- /dev/null
@@ -0,0 +1,26 @@
+#include "config.h"
+#include <stdio.h>
+#include <string.h>
+
+/**
+ * str/base32 - RFC4648 base32 encoder/decoder.
+ *
+ * This code implements RFC4638 encoding, but you should use bech32 for most
+ * things anyway.
+ *
+ * License: CC0 (Public domain)
+ * Author: Rusty Russell <rusty@rustcorp.com.au>
+ */
+int main(int argc, char *argv[])
+{
+       /* Expect exactly one argument */
+       if (argc != 2)
+               return 1;
+
+       if (strcmp(argv[1], "depends") == 0) {
+               printf("ccan/endian\n");
+               return 0;
+       }
+
+       return 1;
+}