jens@0: #include jens@0: #include "mnemonic.h" jens@0: jens@0: main () jens@0: { jens@0: char buf[0x90000]; jens@0: mn_byte outbuf[0x10000]; jens@0: int buflen; jens@0: int n; jens@0: jens@0: buflen = fread (buf, 1, sizeof buf - 1, stdin); jens@0: buf[buflen] = 0; jens@0: jens@0: n = mn_decode (buf, outbuf, sizeof outbuf); jens@0: if (n < 0) jens@0: fprintf (stderr, "mn_decode result %d\n", n); jens@0: else jens@0: fwrite (outbuf, 1, n, stdout); jens@0: jens@0: return 0; jens@0: }