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