home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / compress / 3798 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.7 KB  |  53 lines

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!madere
  2. From: madere@austin.ibm.com (Steve Madere)
  3. Newsgroups: comp.compression
  4. Subject: Readable LZW source code?
  5. Message-ID: <1992Nov9.213235.26682@awdprime.austin.ibm.com>
  6. Date: 9 Nov 92 21:32:35 GMT
  7. Sender: news@awdprime.austin.ibm.com (USENET News)
  8. Reply-To: madere%aixserv@uunet.uu.net
  9. Organization: IBM Austin
  10. Lines: 40
  11. Originator: madere@julius.austin.ibm.com
  12.  
  13.  
  14.  
  15.   Does anybody know of publicly available source code containing 
  16.   LZW compression in a comprehensible form?
  17.  
  18.   What I'm really looking for is a routine like this in C:
  19.  
  20.   LZWCompress(char *source,int srclen, char **dest,int *destlen);
  21.  
  22.   Or even better yet...
  23.  
  24.   LZWCompress(LZWDictionary *dictionary,char *source int srclen,
  25.            char **dest,int *destlen);
  26.    
  27.   Ideally, the code within this routine would be easy to understand
  28.   and reasonably well documented.  And maybe even well-structured
  29.   with subroutines here and there!
  30.  
  31.   I need to modify the algorithm slightly so I'd like some code that
  32.   is reasonably easy to understand.
  33.  
  34.   I've looked at the compress 4.0  source code and it's a real mess!
  35.  
  36.   The FAQ only lists locations for some compression programs but
  37.   they all seem to be file compression oriented and optimized like crazy
  38.   (basically unreadable) as well as adapted to every weird non-virtual
  39.   memory architecture known to mankind (another "feature" that leads
  40.   to difficult reading).
  41.   
  42.   Any help would be much appreciated.
  43.  
  44. Steve Madere
  45. madere%aixserv@uunet.uu.net
  46.  
  47.  
  48. -- 
  49.  
  50. Steve Madere
  51. (Do not reply with R! use the following address)
  52. madere%aixserv@uunet.uu.net
  53.