ZLIB
Loading...
Searching...
No Matches
zutil.c File Reference

Target dependent utility functions for the compression library. More...

#include "zutil.h"
#include "gzguts.h"

Functions

const char *ZEXPORT zlibVersion ()
 The application can compare zlibVersion and ZLIB_VERSION for consistency.
 
uLong ZEXPORT zlibCompileFlags ()
 Return flags indicating compile-time options.
 
const char *ZEXPORT zError (int err)
 Exported to allow conversion of error code to string for compress() and uncompress()
 
void ZLIB_INTERNAL zmemcpy (Bytef *dest, const Bytef *source, uInt len)
 
int ZLIB_INTERNAL zmemcmp (const Bytef *s1, const Bytef *s2, uInt len)
 
void ZLIB_INTERNAL zmemzero (Bytef *dest, uInt len)
 
voidp malloc (uInt size)
 
voidp calloc (uInt items, uInt size)
 
void free (voidpf ptr)
 
voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size)
 
void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
 

Variables

const char *const z_errmsg [10]
 

Detailed Description

Target dependent utility functions for the compression library.

Copyright (C) 1995-2017 Jean-loup Gailly For conditions of distribution and use, see copyright notice in zlib.h

Variable Documentation

◆ z_errmsg

const char* const z_errmsg[10]
Initial value:
= {
(const char *)"need dictionary",
(const char *)"stream end",
(const char *)"",
(const char *)"file error",
(const char *)"stream error",
(const char *)"data error",
(const char *)"insufficient memory",
(const char *)"buffer error",
(const char *)"incompatible version",
(const char *)""
}