Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
example_original.c File Reference
#include "zlib.h"
#include <stdio.h>

Macros

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

Functions

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

Variables

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

Macro Definition Documentation

◆ CHECK_ERR

#define CHECK_ERR ( err,
msg )
Value:
{ \
if (err != Z_OK) { \
fprintf(stderr, "%s error: %d\n", msg, err); \
exit(1); \
} \
}
#define Z_OK
Definition zlib.h:177

◆ TESTFILE

#define TESTFILE   "foo.gz"

Function Documentation

◆ main()

int main ( int argc,
argv  )

◆ OF() [1/5]

void test_flush OF ( (Byte *compr, uLong *comprLen) )

◆ OF() [2/5]

void test_deflate OF ( (Byte *compr, uLong comprLen) )

◆ OF() [3/5]

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

◆ OF() [4/5]

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

◆ OF() [5/5]

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

◆ test_compress()

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

◆ test_deflate()

void test_deflate ( Byte * compr,
uLong comprLen )

◆ test_dict_deflate()

void test_dict_deflate ( Byte * compr,
uLong comprLen )

◆ test_dict_inflate()

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

◆ test_flush()

void test_flush ( Byte * compr,
uLong * comprLen )

◆ test_gzio()

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

◆ test_inflate()

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

◆ test_large_deflate()

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

◆ test_large_inflate()

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

◆ test_sync()

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

Variable Documentation

◆ dictId

uLong dictId

◆ dictionary

const char dictionary[] = "hello"

◆ hello

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