diff -r 000000000000 -r 3d3dcc3116d5 mnemonicode-0.73/mndecode.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mnemonicode-0.73/mndecode.c Wed Apr 02 14:45:33 2008 -0700 @@ -0,0 +1,21 @@ +#include +#include "mnemonic.h" + +main () +{ + char buf[0x90000]; + mn_byte outbuf[0x10000]; + int buflen; + int n; + + buflen = fread (buf, 1, sizeof buf - 1, stdin); + buf[buflen] = 0; + + n = mn_decode (buf, outbuf, sizeof outbuf); + if (n < 0) + fprintf (stderr, "mn_decode result %d\n", n); + else + fwrite (outbuf, 1, n, stdout); + + return 0; +}