Coverage Report

Created: 2025-08-26 06:46

/src/zlib-ng/zutil_p.h
Line
Count
Source
1
/* zutil_p.h -- Private inline functions used internally in zlib-ng
2
 * For conditions of distribution and use, see copyright notice in zlib.h
3
 */
4
5
#ifndef ZUTIL_P_H
6
#define ZUTIL_P_H
7
8
#include <stdlib.h>
9
10
// Zlib-ng's default alloc/free implementation, used unless
11
// application supplies its own alloc/free functions.
12
5.26k
static inline void *zng_alloc(size_t size) {
13
5.26k
    return (void *)malloc(size);
14
5.26k
}
15
16
5.26k
static inline void zng_free(void *ptr) {
17
5.26k
    free(ptr);
18
5.26k
}
19
20
#endif