diff -r 000000000000 -r d84d25d6cdbb mnemonicode-0.73/mnencode.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mnemonicode-0.73/mnencode.c Sat Mar 08 21:04:41 2008 -0800 @@ -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; +}