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

◆ _Z_OF() [1/5]

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

◆ _Z_OF() [2/5]

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

◆ _Z_OF() [3/5]

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

◆ _Z_OF() [4/5]

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

◆ _Z_OF() [5/5]

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

◆ main()

int main ( 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 ( const char * fname,
Byte * uncompr,
uLong uncomprLen )

◆ 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!"