zlib 1.1.3 port to lcc by Bob Crispen <crispen@hiwaay.net>
Version 1.0, 27 February 2000

This port is based on the zlib 1.1.3 distribution at
ftp://ftp.cdrom.com/pub/infozip/zlib/ by Jean-loup Gailly
and Mark Adler.

Please read the file "README_too.txt" for important copyright
and license information.

Installing:
----------

	(a) Install zlib.h and zconf.h in <lcchome>\include
	(b) Install zlib.lib in <lcchome>\lib
	(c) Install example.c anywhere
	(d) Install minigzip.c anywhere


Compiling Programs with zlib:
----------------------------

You should have the following library definition in your project
(Linker tab, "Additional libraries" space):

	zlib.lib

It's also necessary to have the following include statement in
all C files that call functions in the library:

	#include <zlib.h>


Functions in zlib:
-----------------

All functions and data structures in zlib are documented in zlib.h


Test programs:
-------------

(1) Create a new project named example, a console application
that consists only of example.c.  Include the library zlib.lib,
as explained above.  When you run this program from an MSDOS
window, you should get the following output:

uncompress(): hello, hello!
gzread(): hello, hello!
gzgets() after gzseek: hello!
inflate(): hello, hello!
large_inflate(): OK
after inflateSync(): hello, hello!
inflate with dictionary: hello, hello!

(2) Create a new project named minigzip, a console application
that consists only of minigzip.c.  Include the library zlib.lib,
as explained above.  Copy any file that you wish to gzip into
the same directory (lcc) as the executable.  Call minigzip from
an MSDOS window, as follows:

minigzip <yourfile>

When the program exits, you should see a file <yourfile>.gz

To decompress the file, type the following in a DOS window:

minigzip -d <yourfile>.gz

The file should be identical to the original.


The test programs have been confirmed to work on a Win95 machine
using LCC-Win32, Wedit version 3.1.  Files gzipped with minigzip
have been successfully gunzipped using gunzip, as supplied with
Cygwin32 b20.1.

Please report all bugs to mailto:crispen@hiwaay.net
