diff -r 000000000000 -r 66b870428f85 mnemonicode-0.73/mnencode.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mnemonicode-0.73/mnencode.c Sat May 31 11:26:17 2008 -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; +}