next up previous
Next: Version 3 Up: The Trivial Decoder Previous: Version 1

Version 2

Figure 3: The ``Trivial Decoder'', Version 2
4#4

The second version, printed in figure 3, addresses all of the above problems. The code size more than tripled, but that's largely because of the error messages.

All files given on the command line are scanned10, and all encoded files are decoded. Of course, it is now also possible for an encoded file to span its parts over more than one input file. Appropriate error messages are printed upon failure of any step, and a success message is printed for successfully decoded files.

Apart from the program's unfriendliness that there is no user-interaction like selective decoding of files, choice of a target directory etc., there are only three more items to complain about:


next up previous
Next: Version 3 Up: The Trivial Decoder Previous: Version 1
2002-04-15