diff -r 000000000000 -r e55a17cdabd2 mnemonicode-0.73/mndecode.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mnemonicode-0.73/mndecode.c Thu Mar 20 09:05:58 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; +}