Defines | Functions | Variables
example.c File Reference
#include <stdio.h>
#include "zlib.h"
Include dependency graph for zlib123/example.c:

Go to the source code of this file.

Defines

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

Functions

int main (int argc, argv)
void test_compress OF ((Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen))
void test_gzio OF ((const char *fname, Byte *uncompr, uLong 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 (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)
void test_deflate (Byte *compr, uLong comprLen)
void test_dict_deflate (Byte *compr, uLong comprLen)
void test_dict_inflate (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)
void test_flush (Byte *compr, uLong *comprLen)
void test_gzio (char *fname, Byte *uncompr, uLong uncomprLen) const
void test_inflate (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)
void test_large_deflate (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)
void test_large_inflate (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)
void test_sync (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)

Variables

uLong dictId
const char dictionary [] = "hello"
const char hello [] = "hello, hello!"

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 22 of file zlib123/example.c.

#define TESTFILE   "foo.gz"

Definition at line 19 of file zlib123/example.c.


Function Documentation

int main ( int  argc,
argv   
)

Definition at line 514 of file zlib123/example.c.

void test_compress OF ( (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)  )
void test_gzio OF ( (const char *fname, Byte *uncompr, uLong 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 ( Byte compr,
uLong  comprLen,
Byte uncompr,
uLong  uncomprLen 
)

Definition at line 59 of file zlib123/example.c.

void test_deflate ( Byte compr,
uLong  comprLen 
)

Definition at line 169 of file zlib123/example.c.

void test_dict_deflate ( Byte compr,
uLong  comprLen 
)

Definition at line 426 of file zlib123/example.c.

void test_dict_inflate ( Byte compr,
uLong  comprLen,
Byte uncompr,
uLong  uncomprLen 
)

Definition at line 463 of file zlib123/example.c.

void test_flush ( Byte compr,
uLong comprLen 
)

Definition at line 344 of file zlib123/example.c.

void test_gzio ( char *  fname,
Byte uncompr,
uLong  uncomprLen 
) const

Definition at line 85 of file zlib123/example.c.

void test_inflate ( Byte compr,
uLong  comprLen,
Byte uncompr,
uLong  uncomprLen 
)

Definition at line 207 of file zlib123/example.c.

void test_large_deflate ( Byte compr,
uLong  comprLen,
Byte uncompr,
uLong  uncomprLen 
)

Definition at line 248 of file zlib123/example.c.

void test_large_inflate ( Byte compr,
uLong  comprLen,
Byte uncompr,
uLong  uncomprLen 
)

Definition at line 303 of file zlib123/example.c.

void test_sync ( Byte compr,
uLong  comprLen,
Byte uncompr,
uLong  uncomprLen 
)

Definition at line 382 of file zlib123/example.c.


Variable Documentation

Definition at line 35 of file zlib123/example.c.

const char dictionary[] = "hello"

Definition at line 34 of file zlib123/example.c.

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

Definition at line 29 of file zlib123/example.c.



openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sun Apr 2 2017 03:43:58