diff -r 000000000000 -r 5ade3e09a827 mnemonicode-0.73/mnencode.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mnemonicode-0.73/mnencode.c Tue Mar 10 22:34:39 2009 -0700 @@ -0,0 +1,22 @@ +#include +#include "mnemonic.h" + +main () +{ + mn_byte buf[0x10000]; + char outbuf[0x90000]; + int buflen; + int n; + + fprintf (stderr, "%s\n", mn_wordlist_version); + + buflen = fread (buf, 1, sizeof (buf), stdin); + n = mn_encode (buf, buflen, outbuf, sizeof outbuf, MN_F64BITSPERLINE); + if (n == 0) + fwrite (outbuf, 1, strlen (outbuf), stdout); + else + fprintf (stderr, "mn_encode error %d\n", n); + putchar ('\n'); + + return 0; +}