Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

example.c File Reference

#include <stdio.h>
#include "zlib.h"

Go to the source code of this file.

Defines

#define TESTFILE   "foo.gz"
#define CHECK_ERR(err, msg)

Functions

void exit OF ((int))
void test_compress OF ((Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen))
void test_gzio OF ((const char *out, const char *in, Byte *uncompr, int uncomprLen))
void test_deflate OF ((Byte *compr, uLong comprLen))
void test_flush OF ((Byte *compr, uLong *comprLen))
int main OF ((int argc, char *argv[]))
void test_compress (compr, comprLen, uncompr, uncomprLen) Byte *compr,*uncompr

Variables

const char hello [] = "hello, hello!"
const char dictionary [] = "hello"
uLong dictId
uLong comprLen
uLong uncomprLen
const char * in
Byteuncompr
char * argv []


Define Documentation

#define CHECK_ERR err,
msg   
 

Value:

{ \
    if (err != Z_OK) { \
        fprintf(stderr, "%s error: %d\n", msg, err); \
        exit(1); \
    } \
}

Definition at line 24 of file example.c.

#define TESTFILE   "foo.gz"
 

Definition at line 21 of file example.c.


Function Documentation

int main OF (int argc, char *argv[])   
 

void test_flush OF (Byte *compr, uLong *comprLen  
 

void test_deflate OF (Byte *compr, uLong comprLen  
 

void test_gzio OF (const char *out, const char *in, Byte *uncompr, int uncomprLen  
 

void test_compress OF (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen  
 

void exit OF (int)   
 

void test_compress compr   ,
comprLen   ,
uncompr   ,
uncomprLen   
 


Variable Documentation

char* argv[]
 

Definition at line 511 of file example.c.

uLong comprLen
 

Definition at line 460 of file example.c.

uLong dictId
 

Definition at line 37 of file example.c.

const char dictionary[] = "hello"
 

Definition at line 36 of file example.c.

const char hello[] = "hello, hello!"
 

Definition at line 31 of file example.c.

const char* in
 

Definition at line 89 of file example.c.

* uncompr
 

Definition at line 459 of file example.c.

uLong uncomprLen
 

Definition at line 460 of file example.c.


Generated on Sat Oct 13 16:08:48 2001 for XMILL by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001