1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/mnemonicode-0.73/mnencode.c Tue Mar 10 22:34:39 2009 -0700
1.3 @@ -0,0 +1,22 @@
1.4 +#include <stdio.h>
1.5 +#include "mnemonic.h"
1.6 +
1.7 +main ()
1.8 +{
1.9 + mn_byte buf[0x10000];
1.10 + char outbuf[0x90000];
1.11 + int buflen;
1.12 + int n;
1.13 +
1.14 + fprintf (stderr, "%s\n", mn_wordlist_version);
1.15 +
1.16 + buflen = fread (buf, 1, sizeof (buf), stdin);
1.17 + n = mn_encode (buf, buflen, outbuf, sizeof outbuf, MN_F64BITSPERLINE);
1.18 + if (n == 0)
1.19 + fwrite (outbuf, 1, strlen (outbuf), stdout);
1.20 + else
1.21 + fprintf (stderr, "mn_encode error %d\n", n);
1.22 + putchar ('\n');
1.23 +
1.24 + return 0;
1.25 +}