Hex Artifact Content

Not logged in

Artifact 32f349b9aa6b4cdd11c91cac2d392420a386c0eb:


0000: 7a 6c 69 62 20 31 2e 31 2e 33 20 69 73 20 61 20  zlib 1.1.3 is a 
0010: 67 65 6e 65 72 61 6c 20 70 75 72 70 6f 73 65 20  general purpose 
0020: 64 61 74 61 20 63 6f 6d 70 72 65 73 73 69 6f 6e  data compression
0030: 20 6c 69 62 72 61 72 79 2e 20 20 41 6c 6c 20 74   library.  All t
0040: 68 65 20 63 6f 64 65 0a 69 73 20 74 68 72 65 61  he code.is threa
0050: 64 20 73 61 66 65 2e 20 20 54 68 65 20 64 61 74  d safe.  The dat
0060: 61 20 66 6f 72 6d 61 74 20 75 73 65 64 20 62 79  a format used by
0070: 20 74 68 65 20 7a 6c 69 62 20 6c 69 62 72 61 72   the zlib librar
0080: 79 0a 69 73 20 64 65 73 63 72 69 62 65 64 20 62  y.is described b
0090: 79 20 52 46 43 73 20 28 52 65 71 75 65 73 74 20  y RFCs (Request 
00a0: 66 6f 72 20 43 6f 6d 6d 65 6e 74 73 29 20 31 39  for Comments) 19
00b0: 35 30 20 74 6f 20 31 39 35 32 20 69 6e 20 74 68  50 to 1952 in th
00c0: 65 20 66 69 6c 65 73 20 0a 66 74 70 3a 2f 2f 64  e files .ftp://d
00d0: 73 2e 69 6e 74 65 72 6e 69 63 2e 6e 65 74 2f 72  s.internic.net/r
00e0: 66 63 2f 72 66 63 31 39 35 30 2e 74 78 74 20 28  fc/rfc1950.txt (
00f0: 7a 6c 69 62 20 66 6f 72 6d 61 74 29 2c 20 72 66  zlib format), rf
0100: 63 31 39 35 31 2e 74 78 74 20 28 64 65 66 6c 61  c1951.txt (defla
0110: 74 65 0a 66 6f 72 6d 61 74 29 20 61 6e 64 20 72  te.format) and r
0120: 66 63 31 39 35 32 2e 74 78 74 20 28 67 7a 69 70  fc1952.txt (gzip
0130: 20 66 6f 72 6d 61 74 29 2e 20 54 68 65 73 65 20   format). These 
0140: 64 6f 63 75 6d 65 6e 74 73 20 61 72 65 20 61 6c  documents are al
0150: 73 6f 20 61 76 61 69 6c 61 62 6c 65 20 69 6e 0a  so available in.
0160: 6f 74 68 65 72 20 66 6f 72 6d 61 74 73 20 66 72  other formats fr
0170: 6f 6d 20 66 74 70 3a 2f 2f 66 74 70 2e 75 75 2e  om ftp://ftp.uu.
0180: 6e 65 74 2f 67 72 61 70 68 69 63 73 2f 70 6e 67  net/graphics/png
0190: 2f 64 6f 63 75 6d 65 6e 74 73 2f 7a 6c 69 62 2f  /documents/zlib/
01a0: 7a 64 6f 63 2d 69 6e 64 65 78 2e 68 74 6d 6c 0a  zdoc-index.html.
01b0: 0a 41 6c 6c 20 66 75 6e 63 74 69 6f 6e 73 20 6f  .All functions o
01c0: 66 20 74 68 65 20 63 6f 6d 70 72 65 73 73 69 6f  f the compressio
01d0: 6e 20 6c 69 62 72 61 72 79 20 61 72 65 20 64 6f  n library are do
01e0: 63 75 6d 65 6e 74 65 64 20 69 6e 20 74 68 65 20  cumented in the 
01f0: 66 69 6c 65 20 7a 6c 69 62 2e 68 0a 28 76 6f 6c  file zlib.h.(vol
0200: 75 6e 74 65 65 72 20 74 6f 20 77 72 69 74 65 20  unteer to write 
0210: 6d 61 6e 20 70 61 67 65 73 20 77 65 6c 63 6f 6d  man pages welcom
0220: 65 2c 20 63 6f 6e 74 61 63 74 20 6a 6c 6f 75 70  e, contact jloup
0230: 40 67 7a 69 70 2e 6f 72 67 29 2e 20 41 20 75 73  @gzip.org). A us
0240: 61 67 65 0a 65 78 61 6d 70 6c 65 20 6f 66 20 74  age.example of t
0250: 68 65 20 6c 69 62 72 61 72 79 20 69 73 20 67 69  he library is gi
0260: 76 65 6e 20 69 6e 20 74 68 65 20 66 69 6c 65 20  ven in the file 
0270: 65 78 61 6d 70 6c 65 2e 63 20 77 68 69 63 68 20  example.c which 
0280: 61 6c 73 6f 20 74 65 73 74 73 20 74 68 61 74 0a  also tests that.
0290: 74 68 65 20 6c 69 62 72 61 72 79 20 69 73 20 77  the library is w
02a0: 6f 72 6b 69 6e 67 20 63 6f 72 72 65 63 74 6c 79  orking correctly
02b0: 2e 20 41 6e 6f 74 68 65 72 20 65 78 61 6d 70 6c  . Another exampl
02c0: 65 20 69 73 20 67 69 76 65 6e 20 69 6e 20 74 68  e is given in th
02d0: 65 20 66 69 6c 65 0a 6d 69 6e 69 67 7a 69 70 2e  e file.minigzip.
02e0: 63 2e 20 54 68 65 20 63 6f 6d 70 72 65 73 73 69  c. The compressi
02f0: 6f 6e 20 6c 69 62 72 61 72 79 20 69 74 73 65 6c  on library itsel
0300: 66 20 69 73 20 63 6f 6d 70 6f 73 65 64 20 6f 66  f is composed of
0310: 20 61 6c 6c 20 73 6f 75 72 63 65 20 66 69 6c 65   all source file
0320: 73 0a 65 78 63 65 70 74 20 65 78 61 6d 70 6c 65  s.except example
0330: 2e 63 20 61 6e 64 20 6d 69 6e 69 67 7a 69 70 2e  .c and minigzip.
0340: 63 2e 0a 0a 54 6f 20 63 6f 6d 70 69 6c 65 20 61  c...To compile a
0350: 6c 6c 20 66 69 6c 65 73 20 61 6e 64 20 72 75 6e  ll files and run
0360: 20 74 68 65 20 74 65 73 74 20 70 72 6f 67 72 61   the test progra
0370: 6d 2c 20 66 6f 6c 6c 6f 77 20 74 68 65 20 69 6e  m, follow the in
0380: 73 74 72 75 63 74 69 6f 6e 73 0a 67 69 76 65 6e  structions.given
0390: 20 61 74 20 74 68 65 20 74 6f 70 20 6f 66 20 4d   at the top of M
03a0: 61 6b 65 66 69 6c 65 2e 20 49 6e 20 73 68 6f 72  akefile. In shor
03b0: 74 20 22 6d 61 6b 65 20 74 65 73 74 3b 20 6d 61  t "make test; ma
03c0: 6b 65 20 69 6e 73 74 61 6c 6c 22 0a 73 68 6f 75  ke install".shou
03d0: 6c 64 20 77 6f 72 6b 20 66 6f 72 20 6d 6f 73 74  ld work for most
03e0: 20 6d 61 63 68 69 6e 65 73 2e 20 46 6f 72 20 55   machines. For U
03f0: 6e 69 78 3a 20 22 63 6f 6e 66 69 67 75 72 65 3b  nix: "configure;
0400: 20 6d 61 6b 65 20 74 65 73 74 3b 20 6d 61 6b 65   make test; make
0410: 20 69 6e 73 74 61 6c 6c 22 0a 46 6f 72 20 4d 53   install".For MS
0420: 44 4f 53 2c 20 75 73 65 20 6f 6e 65 20 6f 66 20  DOS, use one of 
0430: 74 68 65 20 73 70 65 63 69 61 6c 20 6d 61 6b 65  the special make
0440: 66 69 6c 65 73 20 73 75 63 68 20 61 73 20 4d 61  files such as Ma
0450: 6b 65 66 69 6c 65 2e 6d 73 63 2e 0a 46 6f 72 20  kefile.msc..For 
0460: 56 4d 53 2c 20 75 73 65 20 4d 61 6b 65 5f 76 6d  VMS, use Make_vm
0470: 73 2e 63 6f 6d 20 6f 72 20 64 65 73 63 72 69 70  s.com or descrip
0480: 2e 6d 6d 73 2e 0a 0a 51 75 65 73 74 69 6f 6e 73  .mms...Questions
0490: 20 61 62 6f 75 74 20 7a 6c 69 62 20 73 68 6f 75   about zlib shou
04a0: 6c 64 20 62 65 20 73 65 6e 74 20 74 6f 20 3c 7a  ld be sent to <z
04b0: 6c 69 62 40 71 75 65 73 74 2e 6a 70 6c 2e 6e 61  lib@quest.jpl.na
04c0: 73 61 2e 67 6f 76 3e 2c 20 6f 72 20 74 6f 0a 47  sa.gov>, or to.G
04d0: 69 6c 6c 65 73 20 56 6f 6c 6c 61 6e 74 20 3c 69  illes Vollant <i
04e0: 6e 66 6f 40 77 69 6e 69 6d 61 67 65 2e 63 6f 6d  nfo@winimage.com
04f0: 3e 20 66 6f 72 20 74 68 65 20 57 69 6e 64 6f 77  > for the Window
0500: 73 20 44 4c 4c 20 76 65 72 73 69 6f 6e 2e 0a 54  s DLL version..T
0510: 68 65 20 7a 6c 69 62 20 68 6f 6d 65 20 70 61 67  he zlib home pag
0520: 65 20 69 73 20 68 74 74 70 3a 2f 2f 77 77 77 2e  e is http://www.
0530: 63 64 72 6f 6d 2e 63 6f 6d 2f 70 75 62 2f 69 6e  cdrom.com/pub/in
0540: 66 6f 7a 69 70 2f 7a 6c 69 62 2f 0a 54 68 65 20  fozip/zlib/.The 
0550: 6f 66 66 69 63 69 61 6c 20 7a 6c 69 62 20 66 74  official zlib ft
0560: 70 20 73 69 74 65 20 69 73 20 66 74 70 3a 2f 2f  p site is ftp://
0570: 66 74 70 2e 63 64 72 6f 6d 2e 63 6f 6d 2f 70 75  ftp.cdrom.com/pu
0580: 62 2f 69 6e 66 6f 7a 69 70 2f 7a 6c 69 62 2f 0a  b/infozip/zlib/.
0590: 42 65 66 6f 72 65 20 72 65 70 6f 72 74 69 6e 67  Before reporting
05a0: 20 61 20 70 72 6f 62 6c 65 6d 2c 20 70 6c 65 61   a problem, plea
05b0: 73 65 20 63 68 65 63 6b 20 74 68 6f 73 65 20 73  se check those s
05c0: 69 74 65 73 20 74 6f 20 76 65 72 69 66 79 20 74  ites to verify t
05d0: 68 61 74 0a 79 6f 75 20 68 61 76 65 20 74 68 65  hat.you have the
05e0: 20 6c 61 74 65 73 74 20 76 65 72 73 69 6f 6e 20   latest version 
05f0: 6f 66 20 7a 6c 69 62 3b 20 6f 74 68 65 72 77 69  of zlib; otherwi
0600: 73 65 20 67 65 74 20 74 68 65 20 6c 61 74 65 73  se get the lates
0610: 74 20 76 65 72 73 69 6f 6e 20 61 6e 64 0a 63 68  t version and.ch
0620: 65 63 6b 20 77 68 65 74 68 65 72 20 74 68 65 20  eck whether the 
0630: 70 72 6f 62 6c 65 6d 20 73 74 69 6c 6c 20 65 78  problem still ex
0640: 69 73 74 73 20 6f 72 20 6e 6f 74 2e 0a 0a 4d 61  ists or not...Ma
0650: 72 6b 20 4e 65 6c 73 6f 6e 20 3c 6d 61 72 6b 6e  rk Nelson <markn
0660: 40 74 69 6e 79 2e 63 6f 6d 3e 20 77 72 6f 74 65  @tiny.com> wrote
0670: 20 61 6e 20 61 72 74 69 63 6c 65 20 61 62 6f 75   an article abou
0680: 74 20 7a 6c 69 62 20 66 6f 72 20 74 68 65 20 4a  t zlib for the J
0690: 61 6e 2e 20 31 39 39 37 0a 69 73 73 75 65 20 6f  an. 1997.issue o
06a0: 66 20 20 44 72 2e 20 44 6f 62 62 27 73 20 4a 6f  f  Dr. Dobb's Jo
06b0: 75 72 6e 61 6c 3b 20 61 20 63 6f 70 79 20 6f 66  urnal; a copy of
06c0: 20 74 68 65 20 61 72 74 69 63 6c 65 20 69 73 20   the article is 
06d0: 61 76 61 69 6c 61 62 6c 65 20 69 6e 0a 68 74 74  available in.htt
06e0: 70 3a 2f 2f 77 65 62 32 2e 61 69 72 6d 61 69 6c  p://web2.airmail
06f0: 2e 6e 65 74 2f 6d 61 72 6b 6e 2f 61 72 74 69 63  .net/markn/artic
0700: 6c 65 73 2f 7a 6c 69 62 74 6f 6f 6c 2f 7a 6c 69  les/zlibtool/zli
0710: 62 74 6f 6f 6c 2e 68 74 6d 0a 0a 54 68 65 20 63  btool.htm..The c
0720: 68 61 6e 67 65 73 20 6d 61 64 65 20 69 6e 20 76  hanges made in v
0730: 65 72 73 69 6f 6e 20 31 2e 31 2e 33 20 61 72 65  ersion 1.1.3 are
0740: 20 64 6f 63 75 6d 65 6e 74 65 64 20 69 6e 20 74   documented in t
0750: 68 65 20 66 69 6c 65 20 43 68 61 6e 67 65 4c 6f  he file ChangeLo
0760: 67 2e 0a 54 68 65 20 6d 61 69 6e 20 63 68 61 6e  g..The main chan
0770: 67 65 73 20 73 69 6e 63 65 20 31 2e 31 2e 32 20  ges since 1.1.2 
0780: 61 72 65 3a 0a 0a 2d 20 66 69 78 20 22 61 6e 20  are:..- fix "an 
0790: 69 6e 66 6c 61 74 65 20 69 6e 70 75 74 20 62 75  inflate input bu
07a0: 66 66 65 72 20 62 75 67 20 74 68 61 74 20 73 68  ffer bug that sh
07b0: 6f 77 73 20 75 70 20 6f 6e 20 72 61 72 65 20 62  ows up on rare b
07c0: 75 74 20 70 65 72 73 69 73 74 65 6e 74 0a 20 20  ut persistent.  
07d0: 6f 63 63 61 73 69 6f 6e 73 22 20 28 4d 61 72 6b  occasions" (Mark
07e0: 29 0a 2d 20 66 69 78 20 67 7a 72 65 61 64 20 61  ).- fix gzread a
07f0: 6e 64 20 67 7a 74 65 6c 6c 20 66 6f 72 20 63 6f  nd gztell for co
0800: 6e 63 61 74 65 6e 61 74 65 64 20 2e 67 7a 20 66  ncatenated .gz f
0810: 69 6c 65 73 20 28 44 69 64 69 65 72 20 4c 65 20  iles (Didier Le 
0820: 42 6f 74 6c 61 6e 29 0a 2d 20 66 69 78 20 67 7a  Botlan).- fix gz
0830: 73 65 65 6b 28 2e 2e 2e 2c 20 53 45 45 4b 5f 53  seek(..., SEEK_S
0840: 45 54 29 20 69 6e 20 77 72 69 74 65 20 6d 6f 64  ET) in write mod
0850: 65 0a 2d 20 66 69 78 20 63 72 63 20 63 68 65 63  e.- fix crc chec
0860: 6b 20 61 66 74 65 72 20 61 20 67 7a 65 65 6b 20  k after a gzeek 
0870: 28 46 72 61 6e 6b 20 46 61 75 62 65 72 74 29 0a  (Frank Faubert).
0880: 2d 20 66 69 78 20 6d 69 6e 69 75 6e 7a 69 70 20  - fix miniunzip 
0890: 77 68 65 6e 20 74 68 65 20 6c 61 73 74 20 65 6e  when the last en
08a0: 74 72 79 20 69 6e 20 61 20 7a 69 70 20 66 69 6c  try in a zip fil
08b0: 65 20 69 73 20 69 74 73 65 6c 66 20 61 20 7a 69  e is itself a zi
08c0: 70 20 66 69 6c 65 0a 20 20 28 4a 20 4c 69 6c 6c  p file.  (J Lill
08d0: 67 65 29 0a 2d 20 61 64 64 20 63 6f 6e 74 72 69  ge).- add contri
08e0: 62 2f 61 73 6d 35 38 36 20 61 6e 64 20 63 6f 6e  b/asm586 and con
08f0: 74 72 69 62 2f 61 73 6d 36 38 36 20 28 42 72 69  trib/asm686 (Bri
0900: 61 6e 20 52 61 69 74 65 72 29 0a 20 20 53 65 65  an Raiter).  See
0910: 20 68 74 74 70 3a 2f 2f 77 77 77 2e 6d 75 70 70   http://www.mupp
0920: 65 74 6c 61 62 73 2e 63 6f 6d 2f 7e 62 72 65 61  etlabs.com/~brea
0930: 64 62 6f 78 2f 73 6f 66 74 77 61 72 65 2f 61 73  dbox/software/as
0940: 73 65 6d 62 6c 79 2e 68 74 6d 6c 0a 2d 20 61 64  sembly.html.- ad
0950: 64 20 73 75 70 70 6f 72 74 20 66 6f 72 20 44 65  d support for De
0960: 6c 70 68 69 20 33 20 69 6e 20 63 6f 6e 74 72 69  lphi 3 in contri
0970: 62 2f 64 65 6c 70 68 69 20 28 42 6f 62 20 44 65  b/delphi (Bob De
0980: 6c 6c 61 63 61 29 0a 2d 20 61 64 64 20 73 75 70  llaca).- add sup
0990: 70 6f 72 74 20 66 6f 72 20 43 2b 2b 42 75 69 6c  port for C++Buil
09a0: 64 65 72 20 33 20 61 6e 64 20 44 65 6c 70 68 69  der 3 and Delphi
09b0: 20 33 20 69 6e 20 63 6f 6e 74 72 69 62 2f 64 65   3 in contrib/de
09c0: 6c 70 68 69 32 20 28 44 61 76 69 64 65 20 4d 6f  lphi2 (Davide Mo
09d0: 72 65 74 74 69 29 0a 2d 20 64 6f 20 6e 6f 74 20  retti).- do not 
09e0: 65 78 69 74 20 70 72 65 6d 61 74 75 72 65 6c 79  exit prematurely
09f0: 20 69 6e 20 75 6e 74 67 7a 20 69 66 20 30 20 61   in untgz if 0 a
0a00: 74 20 73 74 61 72 74 20 6f 66 20 62 6c 6f 63 6b  t start of block
0a10: 20 28 4d 61 67 6e 75 73 20 48 6f 6c 6d 67 72 65   (Magnus Holmgre
0a20: 6e 29 0a 2d 20 75 73 65 20 6d 61 63 72 6f 20 45  n).- use macro E
0a30: 58 54 45 52 4e 20 69 6e 73 74 65 61 64 20 6f 66  XTERN instead of
0a40: 20 65 78 74 65 72 6e 20 74 6f 20 73 75 70 70 6f   extern to suppo
0a50: 72 74 20 44 4c 4c 20 66 6f 72 20 42 65 4f 53 20  rt DLL for BeOS 
0a60: 28 53 61 6e 64 65 72 20 53 74 6f 6b 73 29 0a 2d  (Sander Stoks).-
0a70: 20 61 64 64 65 64 20 61 20 46 41 51 20 66 69 6c   added a FAQ fil
0a80: 65 0a 0a 70 6c 75 73 20 6d 61 6e 79 20 63 68 61  e..plus many cha
0a90: 6e 67 65 73 20 66 6f 72 20 70 6f 72 74 61 62 69  nges for portabi
0aa0: 6c 69 74 79 2e 0a 0a 55 6e 73 75 70 70 6f 72 74  lity...Unsupport
0ab0: 65 64 20 74 68 69 72 64 20 70 61 72 74 79 20 63  ed third party c
0ac0: 6f 6e 74 72 69 62 75 74 69 6f 6e 73 20 61 72 65  ontributions are
0ad0: 20 70 72 6f 76 69 64 65 64 20 69 6e 20 64 69 72   provided in dir
0ae0: 65 63 74 6f 72 79 20 22 63 6f 6e 74 72 69 62 22  ectory "contrib"
0af0: 2e 0a 0a 41 20 4a 61 76 61 20 69 6d 70 6c 65 6d  ...A Java implem
0b00: 65 6e 74 61 74 69 6f 6e 20 6f 66 20 7a 6c 69 62  entation of zlib
0b10: 20 69 73 20 61 76 61 69 6c 61 62 6c 65 20 69 6e   is available in
0b20: 20 74 68 65 20 4a 61 76 61 20 44 65 76 65 6c 6f   the Java Develo
0b30: 70 6d 65 6e 74 20 4b 69 74 20 31 2e 31 0a 68 74  pment Kit 1.1.ht
0b40: 74 70 3a 2f 2f 77 77 77 2e 6a 61 76 61 73 6f 66  tp://www.javasof
0b50: 74 2e 63 6f 6d 2f 70 72 6f 64 75 63 74 73 2f 4a  t.com/products/J
0b60: 44 4b 2f 31 2e 31 2f 64 6f 63 73 2f 61 70 69 2f  DK/1.1/docs/api/
0b70: 50 61 63 6b 61 67 65 2d 6a 61 76 61 2e 75 74 69  Package-java.uti
0b80: 6c 2e 7a 69 70 2e 68 74 6d 6c 0a 53 65 65 20 74  l.zip.html.See t
0b90: 68 65 20 7a 6c 69 62 20 68 6f 6d 65 20 70 61 67  he zlib home pag
0ba0: 65 20 68 74 74 70 3a 2f 2f 77 77 77 2e 63 64 72  e http://www.cdr
0bb0: 6f 6d 2e 63 6f 6d 2f 70 75 62 2f 69 6e 66 6f 7a  om.com/pub/infoz
0bc0: 69 70 2f 7a 6c 69 62 2f 20 66 6f 72 20 64 65 74  ip/zlib/ for det
0bd0: 61 69 6c 73 2e 0a 0a 41 20 50 65 72 6c 20 69 6e  ails...A Perl in
0be0: 74 65 72 66 61 63 65 20 74 6f 20 7a 6c 69 62 20  terface to zlib 
0bf0: 77 72 69 74 74 65 6e 20 62 79 20 50 61 75 6c 20  written by Paul 
0c00: 4d 61 72 71 75 65 73 73 20 3c 70 6d 61 72 71 75  Marquess <pmarqu
0c10: 65 73 73 40 62 66 73 65 63 2e 62 74 2e 63 6f 2e  ess@bfsec.bt.co.
0c20: 75 6b 3e 0a 69 73 20 69 6e 20 74 68 65 20 43 50  uk>.is in the CP
0c30: 41 4e 20 28 43 6f 6d 70 72 65 68 65 6e 73 69 76  AN (Comprehensiv
0c40: 65 20 50 65 72 6c 20 41 72 63 68 69 76 65 20 4e  e Perl Archive N
0c50: 65 74 77 6f 72 6b 29 20 73 69 74 65 73 2c 20 73  etwork) sites, s
0c60: 75 63 68 20 61 73 3a 0a 66 74 70 3a 2f 2f 66 74  uch as:.ftp://ft
0c70: 70 2e 63 69 73 2e 75 66 6c 2e 65 64 75 2f 70 75  p.cis.ufl.edu/pu
0c80: 62 2f 70 65 72 6c 2f 43 50 41 4e 2f 6d 6f 64 75  b/perl/CPAN/modu
0c90: 6c 65 73 2f 62 79 2d 6d 6f 64 75 6c 65 2f 43 6f  les/by-module/Co
0ca0: 6d 70 72 65 73 73 2f 43 6f 6d 70 72 65 73 73 2d  mpress/Compress-
0cb0: 5a 6c 69 62 2a 0a 0a 41 20 50 79 74 68 6f 6e 20  Zlib*..A Python 
0cc0: 69 6e 74 65 72 66 61 63 65 20 74 6f 20 7a 6c 69  interface to zli
0cd0: 62 20 77 72 69 74 74 65 6e 20 62 79 20 41 2e 4d  b written by A.M
0ce0: 2e 20 4b 75 63 68 6c 69 6e 67 20 3c 61 6d 6b 40  . Kuchling <amk@
0cf0: 6d 61 67 6e 65 74 2e 63 6f 6d 3e 0a 69 73 20 61  magnet.com>.is a
0d00: 76 61 69 6c 61 62 6c 65 20 69 6e 20 50 79 74 68  vailable in Pyth
0d10: 6f 6e 20 31 2e 35 20 61 6e 64 20 6c 61 74 65 72  on 1.5 and later
0d20: 20 76 65 72 73 69 6f 6e 73 2c 20 73 65 65 0a 68   versions, see.h
0d30: 74 74 70 3a 2f 2f 77 77 77 2e 70 79 74 68 6f 6e  ttp://www.python
0d40: 2e 6f 72 67 2f 64 6f 63 2f 6c 69 62 2f 6d 6f 64  .org/doc/lib/mod
0d50: 75 6c 65 2d 7a 6c 69 62 2e 68 74 6d 6c 0a 0a 41  ule-zlib.html..A
0d60: 20 7a 6c 69 62 20 62 69 6e 64 69 6e 67 20 66 6f   zlib binding fo
0d70: 72 20 54 43 4c 20 77 72 69 74 74 65 6e 20 62 79  r TCL written by
0d80: 20 41 6e 64 72 65 61 73 20 4b 75 70 72 69 65 73   Andreas Kupries
0d90: 20 3c 61 2e 6b 75 70 72 69 65 73 40 77 65 73 74   <a.kupries@west
0da0: 65 6e 64 2e 63 6f 6d 3e 0a 69 73 20 61 76 61 69  end.com>.is avai
0db0: 6c 6c 61 62 6c 65 20 61 74 20 68 74 74 70 3a 2f  llable at http:/
0dc0: 2f 77 77 77 2e 77 65 73 74 65 6e 64 2e 63 6f 6d  /www.westend.com
0dd0: 2f 7e 6b 75 70 72 69 65 73 2f 64 6f 63 2f 74 72  /~kupries/doc/tr
0de0: 66 2f 6d 61 6e 2f 6d 61 6e 2e 68 74 6d 6c 0a 0a  f/man/man.html..
0df0: 41 6e 20 65 78 70 65 72 69 6d 65 6e 74 61 6c 20  An experimental 
0e00: 70 61 63 6b 61 67 65 20 74 6f 20 72 65 61 64 20  package to read 
0e10: 61 6e 64 20 77 72 69 74 65 20 66 69 6c 65 73 20  and write files 
0e20: 69 6e 20 2e 7a 69 70 20 66 6f 72 6d 61 74 2c 0a  in .zip format,.
0e30: 77 72 69 74 74 65 6e 20 6f 6e 20 74 6f 70 20 6f  written on top o
0e40: 66 20 7a 6c 69 62 20 62 79 20 47 69 6c 6c 65 73  f zlib by Gilles
0e50: 20 56 6f 6c 6c 61 6e 74 20 3c 69 6e 66 6f 40 77   Vollant <info@w
0e60: 69 6e 69 6d 61 67 65 2e 63 6f 6d 3e 2c 20 69 73  inimage.com>, is
0e70: 0a 61 76 61 69 6c 61 62 6c 65 20 61 74 20 68 74  .available at ht
0e80: 74 70 3a 2f 2f 77 77 77 2e 77 69 6e 69 6d 61 67  tp://www.winimag
0e90: 65 2e 63 6f 6d 2f 7a 4c 69 62 44 6c 6c 2f 75 6e  e.com/zLibDll/un
0ea0: 7a 69 70 2e 68 74 6d 6c 0a 61 6e 64 20 61 6c 73  zip.html.and als
0eb0: 6f 20 69 6e 20 74 68 65 20 63 6f 6e 74 72 69 62  o in the contrib
0ec0: 2f 6d 69 6e 69 7a 69 70 20 64 69 72 65 63 74 6f  /minizip directo
0ed0: 72 79 20 6f 66 20 7a 6c 69 62 2e 0a 0a 0a 4e 6f  ry of zlib....No
0ee0: 74 65 73 20 66 6f 72 20 73 6f 6d 65 20 74 61 72  tes for some tar
0ef0: 67 65 74 73 3a 0a 0a 2d 20 54 6f 20 62 75 69 6c  gets:..- To buil
0f00: 64 20 61 20 57 69 6e 64 6f 77 73 20 44 4c 4c 20  d a Windows DLL 
0f10: 76 65 72 73 69 6f 6e 2c 20 69 6e 63 6c 75 64 65  version, include
0f20: 20 69 6e 20 61 20 44 4c 4c 20 70 72 6f 6a 65 63   in a DLL projec
0f30: 74 20 7a 6c 69 62 2e 64 65 66 2c 20 7a 6c 69 62  t zlib.def, zlib
0f40: 2e 72 63 0a 20 20 61 6e 64 20 61 6c 6c 20 2e 63  .rc.  and all .c
0f50: 20 66 69 6c 65 73 20 65 78 63 65 70 74 20 65 78   files except ex
0f60: 61 6d 70 6c 65 2e 63 20 61 6e 64 20 6d 69 6e 69  ample.c and mini
0f70: 67 7a 69 70 2e 63 3b 20 63 6f 6d 70 69 6c 65 20  gzip.c; compile 
0f80: 77 69 74 68 20 2d 44 5a 4c 49 42 5f 44 4c 4c 0a  with -DZLIB_DLL.
0f90: 20 20 54 68 65 20 7a 6c 69 62 20 44 4c 4c 20 73    The zlib DLL s
0fa0: 75 70 70 6f 72 74 20 77 61 73 20 69 6e 69 74 69  upport was initi
0fb0: 61 6c 6c 79 20 64 6f 6e 65 20 62 79 20 41 6c 65  ally done by Ale
0fc0: 73 73 61 6e 64 72 6f 20 49 61 63 6f 70 65 74 74  ssandro Iacopett
0fd0: 69 20 61 6e 64 20 69 73 0a 20 20 6e 6f 77 20 6d  i and is.  now m
0fe0: 61 69 6e 74 61 69 6e 65 64 20 62 79 20 47 69 6c  aintained by Gil
0ff0: 6c 65 73 20 56 6f 6c 6c 61 6e 74 20 3c 69 6e 66  les Vollant <inf
1000: 6f 40 77 69 6e 69 6d 61 67 65 2e 63 6f 6d 3e 2e  o@winimage.com>.
1010: 20 43 68 65 63 6b 20 74 68 65 20 7a 6c 69 62 20   Check the zlib 
1020: 44 4c 4c 0a 20 20 68 6f 6d 65 20 70 61 67 65 20  DLL.  home page 
1030: 61 74 20 68 74 74 70 3a 2f 2f 77 77 77 2e 77 69  at http://www.wi
1040: 6e 69 6d 61 67 65 2e 63 6f 6d 2f 7a 4c 69 62 44  nimage.com/zLibD
1050: 6c 6c 0a 0a 20 20 46 72 6f 6d 20 56 69 73 75 61  ll..  From Visua
1060: 6c 20 42 61 73 69 63 2c 20 79 6f 75 20 63 61 6e  l Basic, you can
1070: 20 63 61 6c 6c 20 74 68 65 20 44 4c 4c 20 66 75   call the DLL fu
1080: 6e 63 74 69 6f 6e 73 20 77 68 69 63 68 20 64 6f  nctions which do
1090: 20 6e 6f 74 20 74 61 6b 65 0a 20 20 61 20 73 74   not take.  a st
10a0: 72 75 63 74 75 72 65 20 61 73 20 61 72 67 75 6d  ructure as argum
10b0: 65 6e 74 3a 20 63 6f 6d 70 72 65 73 73 2c 20 75  ent: compress, u
10c0: 6e 63 6f 6d 70 72 65 73 73 20 61 6e 64 20 61 6c  ncompress and al
10d0: 6c 20 67 7a 2a 20 66 75 6e 63 74 69 6f 6e 73 2e  l gz* functions.
10e0: 0a 20 20 53 65 65 20 63 6f 6e 74 72 69 62 2f 76  .  See contrib/v
10f0: 69 73 75 61 6c 2d 62 61 73 69 63 2e 74 78 74 20  isual-basic.txt 
1100: 66 6f 72 20 6d 6f 72 65 20 69 6e 66 6f 72 6d 61  for more informa
1110: 74 69 6f 6e 2c 20 6f 72 20 67 65 74 0a 20 20 68  tion, or get.  h
1120: 74 74 70 3a 2f 2f 77 77 77 2e 74 63 66 62 2e 63  ttp://www.tcfb.c
1130: 6f 6d 2f 64 6f 77 73 65 77 61 72 65 2f 63 6d 70  om/dowseware/cmp
1140: 2d 7a 2d 69 74 2e 7a 69 70 0a 0a 2d 20 46 6f 72  -z-it.zip..- For
1150: 20 36 34 2d 62 69 74 20 49 72 69 78 2c 20 64 65   64-bit Irix, de
1160: 66 6c 61 74 65 2e 63 20 6d 75 73 74 20 62 65 20  flate.c must be 
1170: 63 6f 6d 70 69 6c 65 64 20 77 69 74 68 6f 75 74  compiled without
1180: 20 61 6e 79 20 6f 70 74 69 6d 69 7a 61 74 69 6f   any optimizatio
1190: 6e 2e 0a 20 20 57 69 74 68 20 2d 4f 2c 20 6f 6e  n..  With -O, on
11a0: 65 20 6c 69 62 70 6e 67 20 74 65 73 74 20 66 61  e libpng test fa
11b0: 69 6c 73 2e 20 54 68 65 20 74 65 73 74 20 77 6f  ils. The test wo
11c0: 72 6b 73 20 69 6e 20 33 32 20 62 69 74 20 6d 6f  rks in 32 bit mo
11d0: 64 65 20 28 77 69 74 68 0a 20 20 74 68 65 20 2d  de (with.  the -
11e0: 6e 33 32 20 63 6f 6d 70 69 6c 65 72 20 66 6c 61  n32 compiler fla
11f0: 67 29 2e 20 54 68 65 20 63 6f 6d 70 69 6c 65 72  g). The compiler
1200: 20 62 75 67 20 68 61 73 20 62 65 65 6e 20 72 65   bug has been re
1210: 70 6f 72 74 65 64 20 74 6f 20 53 47 49 2e 0a 0a  ported to SGI...
1220: 2d 20 7a 6c 69 62 20 64 6f 65 73 6e 27 74 20 77  - zlib doesn't w
1230: 6f 72 6b 20 77 69 74 68 20 67 63 63 20 32 2e 36  ork with gcc 2.6
1240: 2e 33 20 6f 6e 20 61 20 44 45 43 20 33 30 30 30  .3 on a DEC 3000
1250: 2f 33 30 30 4c 58 20 75 6e 64 65 72 20 4f 53 46  /300LX under OSF
1260: 2f 31 20 32 2e 31 20 20 20 0a 20 20 69 74 20 77  /1 2.1   .  it w
1270: 6f 72 6b 73 20 77 68 65 6e 20 63 6f 6d 70 69 6c  orks when compil
1280: 65 64 20 77 69 74 68 20 63 63 2e 0a 0a 2d 20 6f  ed with cc...- o
1290: 6e 20 44 69 67 69 74 61 6c 20 55 6e 69 78 20 34  n Digital Unix 4
12a0: 2e 30 44 20 28 66 6f 72 6d 65 6c 79 20 4f 53 46  .0D (formely OSF
12b0: 2f 31 29 20 6f 6e 20 41 6c 70 68 61 53 65 72 76  /1) on AlphaServ
12c0: 65 72 2c 20 74 68 65 20 63 63 20 6f 70 74 69 6f  er, the cc optio
12d0: 6e 20 2d 73 74 64 31 0a 20 20 69 73 20 6e 65 63  n -std1.  is nec
12e0: 65 73 73 61 72 79 20 74 6f 20 67 65 74 20 67 7a  essary to get gz
12f0: 70 72 69 6e 74 66 20 77 6f 72 6b 69 6e 67 20 63  printf working c
1300: 6f 72 72 65 63 74 6c 79 2e 20 54 68 69 73 20 69  orrectly. This i
1310: 73 20 64 6f 6e 65 20 62 79 20 63 6f 6e 66 69 67  s done by config
1320: 75 72 65 2e 0a 0a 2d 20 7a 6c 69 62 20 64 6f 65  ure...- zlib doe
1330: 73 6e 27 74 20 77 6f 72 6b 20 6f 6e 20 48 50 2d  sn't work on HP-
1340: 55 58 20 39 2e 30 35 20 77 69 74 68 20 73 6f 6d  UX 9.05 with som
1350: 65 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 2f 62  e versions of /b
1360: 69 6e 2f 63 63 2e 20 49 74 20 77 6f 72 6b 73 0a  in/cc. It works.
1370: 20 20 77 69 74 68 20 6f 74 68 65 72 20 63 6f 6d    with other com
1380: 70 69 6c 65 72 73 2e 20 55 73 65 20 22 6d 61 6b  pilers. Use "mak
1390: 65 20 74 65 73 74 22 20 74 6f 20 63 68 65 63 6b  e test" to check
13a0: 20 79 6f 75 72 20 63 6f 6d 70 69 6c 65 72 2e 0a   your compiler..
13b0: 0a 2d 20 67 7a 64 6f 70 65 6e 20 69 73 20 6e 6f  .- gzdopen is no
13c0: 74 20 73 75 70 70 6f 72 74 65 64 20 6f 6e 20 52  t supported on R
13d0: 49 53 43 4f 53 2c 20 42 45 4f 53 20 61 6e 64 20  ISCOS, BEOS and 
13e0: 62 79 20 73 6f 6d 65 20 4d 61 63 20 63 6f 6d 70  by some Mac comp
13f0: 69 6c 65 72 73 2e 0a 0a 2d 20 46 6f 72 20 54 75  ilers...- For Tu
1400: 72 62 6f 20 43 20 74 68 65 20 73 6d 61 6c 6c 20  rbo C the small 
1410: 6d 6f 64 65 6c 20 69 73 20 73 75 70 70 6f 72 74  model is support
1420: 65 64 20 6f 6e 6c 79 20 77 69 74 68 20 72 65 64  ed only with red
1430: 75 63 65 64 20 70 65 72 66 6f 72 6d 61 6e 63 65  uced performance
1440: 20 74 6f 0a 20 20 61 76 6f 69 64 20 61 6e 79 20   to.  avoid any 
1450: 66 61 72 20 61 6c 6c 6f 63 61 74 69 6f 6e 3b 20  far allocation; 
1460: 69 74 20 77 61 73 20 74 65 73 74 65 64 20 77 69  it was tested wi
1470: 74 68 20 2d 44 4d 41 58 5f 57 42 49 54 53 3d 31  th -DMAX_WBITS=1
1480: 31 20 2d 44 4d 41 58 5f 4d 45 4d 5f 4c 45 56 45  1 -DMAX_MEM_LEVE
1490: 4c 3d 33 0a 0a 2d 20 46 6f 72 20 50 61 6c 6d 4f  L=3..- For PalmO
14a0: 73 2c 20 73 65 65 20 68 74 74 70 3a 2f 2f 77 77  s, see http://ww
14b0: 77 2e 63 73 2e 75 69 74 2e 6e 6f 2f 7e 70 65 72  w.cs.uit.no/~per
14c0: 6d 2f 50 41 53 54 41 2f 70 69 6c 6f 74 2f 73 6f  m/PASTA/pilot/so
14d0: 66 74 77 61 72 65 2e 68 74 6d 6c 0a 20 20 50 65  ftware.html.  Pe
14e0: 72 20 48 61 72 61 6c 64 20 4d 79 72 76 61 6e 67  r Harald Myrvang
14f0: 20 3c 70 65 72 6d 40 73 74 75 64 2e 63 73 2e 75   <perm@stud.cs.u
1500: 69 74 2e 6e 6f 3e 0a 0a 0a 41 63 6b 6e 6f 77 6c  it.no>...Acknowl
1510: 65 64 67 6d 65 6e 74 73 3a 0a 0a 20 20 54 68 65  edgments:..  The
1520: 20 64 65 66 6c 61 74 65 20 66 6f 72 6d 61 74 20   deflate format 
1530: 75 73 65 64 20 62 79 20 7a 6c 69 62 20 77 61 73  used by zlib was
1540: 20 64 65 66 69 6e 65 64 20 62 79 20 50 68 69 6c   defined by Phil
1550: 20 4b 61 74 7a 2e 20 54 68 65 20 64 65 66 6c 61   Katz. The defla
1560: 74 65 0a 20 20 61 6e 64 20 7a 6c 69 62 20 73 70  te.  and zlib sp
1570: 65 63 69 66 69 63 61 74 69 6f 6e 73 20 77 65 72  ecifications wer
1580: 65 20 77 72 69 74 74 65 6e 20 62 79 20 4c 2e 20  e written by L. 
1590: 50 65 74 65 72 20 44 65 75 74 73 63 68 2e 20 54  Peter Deutsch. T
15a0: 68 61 6e 6b 73 20 74 6f 20 61 6c 6c 20 74 68 65  hanks to all the
15b0: 0a 20 20 70 65 6f 70 6c 65 20 77 68 6f 20 72 65  .  people who re
15c0: 70 6f 72 74 65 64 20 70 72 6f 62 6c 65 6d 73 20  ported problems 
15d0: 61 6e 64 20 73 75 67 67 65 73 74 65 64 20 76 61  and suggested va
15e0: 72 69 6f 75 73 20 69 6d 70 72 6f 76 65 6d 65 6e  rious improvemen
15f0: 74 73 20 69 6e 20 7a 6c 69 62 3b 0a 20 20 74 68  ts in zlib;.  th
1600: 65 79 20 61 72 65 20 74 6f 6f 20 6e 75 6d 65 72  ey are too numer
1610: 6f 75 73 20 74 6f 20 63 69 74 65 20 68 65 72 65  ous to cite here
1620: 2e 0a 0a 43 6f 70 79 72 69 67 68 74 20 6e 6f 74  ...Copyright not
1630: 69 63 65 3a 0a 0a 20 28 43 29 20 31 39 39 35 2d  ice:.. (C) 1995-
1640: 31 39 39 38 20 4a 65 61 6e 2d 6c 6f 75 70 20 47  1998 Jean-loup G
1650: 61 69 6c 6c 79 20 61 6e 64 20 4d 61 72 6b 20 41  ailly and Mark A
1660: 64 6c 65 72 0a 0a 20 20 54 68 69 73 20 73 6f 66  dler..  This sof
1670: 74 77 61 72 65 20 69 73 20 70 72 6f 76 69 64 65  tware is provide
1680: 64 20 27 61 73 2d 69 73 27 2c 20 77 69 74 68 6f  d 'as-is', witho
1690: 75 74 20 61 6e 79 20 65 78 70 72 65 73 73 20 6f  ut any express o
16a0: 72 20 69 6d 70 6c 69 65 64 0a 20 20 77 61 72 72  r implied.  warr
16b0: 61 6e 74 79 2e 20 20 49 6e 20 6e 6f 20 65 76 65  anty.  In no eve
16c0: 6e 74 20 77 69 6c 6c 20 74 68 65 20 61 75 74 68  nt will the auth
16d0: 6f 72 73 20 62 65 20 68 65 6c 64 20 6c 69 61 62  ors be held liab
16e0: 6c 65 20 66 6f 72 20 61 6e 79 20 64 61 6d 61 67  le for any damag
16f0: 65 73 0a 20 20 61 72 69 73 69 6e 67 20 66 72 6f  es.  arising fro
1700: 6d 20 74 68 65 20 75 73 65 20 6f 66 20 74 68 69  m the use of thi
1710: 73 20 73 6f 66 74 77 61 72 65 2e 0a 0a 20 20 50  s software...  P
1720: 65 72 6d 69 73 73 69 6f 6e 20 69 73 20 67 72 61  ermission is gra
1730: 6e 74 65 64 20 74 6f 20 61 6e 79 6f 6e 65 20 74  nted to anyone t
1740: 6f 20 75 73 65 20 74 68 69 73 20 73 6f 66 74 77  o use this softw
1750: 61 72 65 20 66 6f 72 20 61 6e 79 20 70 75 72 70  are for any purp
1760: 6f 73 65 2c 0a 20 20 69 6e 63 6c 75 64 69 6e 67  ose,.  including
1770: 20 63 6f 6d 6d 65 72 63 69 61 6c 20 61 70 70 6c   commercial appl
1780: 69 63 61 74 69 6f 6e 73 2c 20 61 6e 64 20 74 6f  ications, and to
1790: 20 61 6c 74 65 72 20 69 74 20 61 6e 64 20 72 65   alter it and re
17a0: 64 69 73 74 72 69 62 75 74 65 20 69 74 0a 20 20  distribute it.  
17b0: 66 72 65 65 6c 79 2c 20 73 75 62 6a 65 63 74 20  freely, subject 
17c0: 74 6f 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67  to the following
17d0: 20 72 65 73 74 72 69 63 74 69 6f 6e 73 3a 0a 0a   restrictions:..
17e0: 20 20 31 2e 20 54 68 65 20 6f 72 69 67 69 6e 20    1. The origin 
17f0: 6f 66 20 74 68 69 73 20 73 6f 66 74 77 61 72 65  of this software
1800: 20 6d 75 73 74 20 6e 6f 74 20 62 65 20 6d 69 73   must not be mis
1810: 72 65 70 72 65 73 65 6e 74 65 64 3b 20 79 6f 75  represented; you
1820: 20 6d 75 73 74 20 6e 6f 74 0a 20 20 20 20 20 63   must not.     c
1830: 6c 61 69 6d 20 74 68 61 74 20 79 6f 75 20 77 72  laim that you wr
1840: 6f 74 65 20 74 68 65 20 6f 72 69 67 69 6e 61 6c  ote the original
1850: 20 73 6f 66 74 77 61 72 65 2e 20 49 66 20 79 6f   software. If yo
1860: 75 20 75 73 65 20 74 68 69 73 20 73 6f 66 74 77  u use this softw
1870: 61 72 65 0a 20 20 20 20 20 69 6e 20 61 20 70 72  are.     in a pr
1880: 6f 64 75 63 74 2c 20 61 6e 20 61 63 6b 6e 6f 77  oduct, an acknow
1890: 6c 65 64 67 6d 65 6e 74 20 69 6e 20 74 68 65 20  ledgment in the 
18a0: 70 72 6f 64 75 63 74 20 64 6f 63 75 6d 65 6e 74  product document
18b0: 61 74 69 6f 6e 20 77 6f 75 6c 64 20 62 65 0a 20  ation would be. 
18c0: 20 20 20 20 61 70 70 72 65 63 69 61 74 65 64 20      appreciated 
18d0: 62 75 74 20 69 73 20 6e 6f 74 20 72 65 71 75 69  but is not requi
18e0: 72 65 64 2e 0a 20 20 32 2e 20 41 6c 74 65 72 65  red..  2. Altere
18f0: 64 20 73 6f 75 72 63 65 20 76 65 72 73 69 6f 6e  d source version
1900: 73 20 6d 75 73 74 20 62 65 20 70 6c 61 69 6e 6c  s must be plainl
1910: 79 20 6d 61 72 6b 65 64 20 61 73 20 73 75 63 68  y marked as such
1920: 2c 20 61 6e 64 20 6d 75 73 74 20 6e 6f 74 20 62  , and must not b
1930: 65 0a 20 20 20 20 20 6d 69 73 72 65 70 72 65 73  e.     misrepres
1940: 65 6e 74 65 64 20 61 73 20 62 65 69 6e 67 20 74  ented as being t
1950: 68 65 20 6f 72 69 67 69 6e 61 6c 20 73 6f 66 74  he original soft
1960: 77 61 72 65 2e 0a 20 20 33 2e 20 54 68 69 73 20  ware..  3. This 
1970: 6e 6f 74 69 63 65 20 6d 61 79 20 6e 6f 74 20 62  notice may not b
1980: 65 20 72 65 6d 6f 76 65 64 20 6f 72 20 61 6c 74  e removed or alt
1990: 65 72 65 64 20 66 72 6f 6d 20 61 6e 79 20 73 6f  ered from any so
19a0: 75 72 63 65 20 64 69 73 74 72 69 62 75 74 69 6f  urce distributio
19b0: 6e 2e 0a 0a 20 20 4a 65 61 6e 2d 6c 6f 75 70 20  n...  Jean-loup 
19c0: 47 61 69 6c 6c 79 20 20 20 20 20 20 20 20 4d 61  Gailly        Ma
19d0: 72 6b 20 41 64 6c 65 72 0a 20 20 6a 6c 6f 75 70  rk Adler.  jloup
19e0: 40 67 7a 69 70 2e 6f 72 67 20 20 20 20 20 20 20  @gzip.org       
19f0: 20 20 20 6d 61 64 6c 65 72 40 61 6c 75 6d 6e 69     madler@alumni
1a00: 2e 63 61 6c 74 65 63 68 2e 65 64 75 0a 0a 49 66  .caltech.edu..If
1a10: 20 79 6f 75 20 75 73 65 20 74 68 65 20 7a 6c 69   you use the zli
1a20: 62 20 6c 69 62 72 61 72 79 20 69 6e 20 61 20 70  b library in a p
1a30: 72 6f 64 75 63 74 2c 20 77 65 20 77 6f 75 6c 64  roduct, we would
1a40: 20 61 70 70 72 65 63 69 61 74 65 20 2a 6e 6f 74   appreciate *not
1a50: 2a 0a 72 65 63 65 69 76 69 6e 67 20 6c 65 6e 67  *.receiving leng
1a60: 74 68 79 20 6c 65 67 61 6c 20 64 6f 63 75 6d 65  thy legal docume
1a70: 6e 74 73 20 74 6f 20 73 69 67 6e 2e 20 54 68 65  nts to sign. The
1a80: 20 73 6f 75 72 63 65 73 20 61 72 65 20 70 72 6f   sources are pro
1a90: 76 69 64 65 64 0a 66 6f 72 20 66 72 65 65 20 62  vided.for free b
1aa0: 75 74 20 77 69 74 68 6f 75 74 20 77 61 72 72 61  ut without warra
1ab0: 6e 74 79 20 6f 66 20 61 6e 79 20 6b 69 6e 64 2e  nty of any kind.
1ac0: 20 20 54 68 65 20 6c 69 62 72 61 72 79 20 68 61    The library ha
1ad0: 73 20 62 65 65 6e 0a 65 6e 74 69 72 65 6c 79 20  s been.entirely 
1ae0: 77 72 69 74 74 65 6e 20 62 79 20 4a 65 61 6e 2d  written by Jean-
1af0: 6c 6f 75 70 20 47 61 69 6c 6c 79 20 61 6e 64 20  loup Gailly and 
1b00: 4d 61 72 6b 20 41 64 6c 65 72 3b 20 69 74 20 64  Mark Adler; it d
1b10: 6f 65 73 20 6e 6f 74 0a 69 6e 63 6c 75 64 65 20  oes not.include 
1b20: 74 68 69 72 64 2d 70 61 72 74 79 20 63 6f 64 65  third-party code
1b30: 2e 0a 0a 49 66 20 79 6f 75 20 72 65 64 69 73 74  ...If you redist
1b40: 72 69 62 75 74 65 20 6d 6f 64 69 66 69 65 64 20  ribute modified 
1b50: 73 6f 75 72 63 65 73 2c 20 77 65 20 77 6f 75 6c  sources, we woul
1b60: 64 20 61 70 70 72 65 63 69 61 74 65 20 74 68 61  d appreciate tha
1b70: 74 20 79 6f 75 20 69 6e 63 6c 75 64 65 0a 69 6e  t you include.in
1b80: 20 74 68 65 20 66 69 6c 65 20 43 68 61 6e 67 65   the file Change
1b90: 4c 6f 67 20 68 69 73 74 6f 72 79 20 69 6e 66 6f  Log history info
1ba0: 72 6d 61 74 69 6f 6e 20 64 6f 63 75 6d 65 6e 74  rmation document
1bb0: 69 6e 67 20 79 6f 75 72 20 63 68 61 6e 67 65 73  ing your changes
1bc0: 2e 0a                                            ..