home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / prog / source / lzhuffsr.lzh / POSTER < prev   
Text File  |  1989-04-06  |  1KB  |  41 lines

  1. Subject: v02i042: C source for lharc's LZHuff compression algorithm
  2. Summary: lzhsrc10.arc, C source for lharc's LZHuff compression algorithm
  3. Date: 6 Apr 89 01:00:33 GMT
  4. Posted: Wed Apr  5 20:00:33 1989
  5.  
  6. Posting-number: Volume 02, Issue 042
  7. Originally-from: Haruhiko Okumura, Haruyasu Yoshizaki, & Kenji Rikitake
  8. Submitted-by: Kenji Rikitake <c31293%tansei.cc.u-tokyo.ac.jp@RELAY.CS.NET>
  9. Archive-name: lharc/lzhsrc10.uue
  10.  
  11. [ US users should note that the cost of international email is usually
  12. borne by the non-US recipient or sender.  -- R.D. ]
  13.  
  14. Following is a source code of single-file compression/uncompresssion
  15. program. It has the same compression algorithm with LHarc.  I have got
  16. a permission to post this to the USENET community from Haruyasu
  17. Yoshizaki.
  18. -- Kenji
  19.  
  20. [
  21. >From the source:
  22.  
  23.     * LZHUF.C English version 1.0
  24.     * Based on Japanese version 29-NOV-1988
  25.     * LZSS coded by Haruhiko OKUMURA
  26.     * Adaptive Huffman Coding coded by Haruyasu YOSHIZAKI
  27.     * Edited and translated to English by Kenji RIKITAKE
  28.  
  29. The source is fairly generic but has a few ANSI-specific features such
  30. as memmove() and function prototypes.
  31.  
  32. It compiles with Turbo C 1.0.  The resulting program is quite fast,
  33. considering it is written purely in C.  It seems to compress exactly as
  34. well as lharc itself.  I did not try to compile it on any other
  35. system.
  36.  
  37. This would have been the perfect text posting except that there are
  38. some control characters in the source, so I archived it.
  39.  
  40. -- R.D.
  41.