summaryrefslogtreecommitdiffstats
path: root/tools/include/linux/zalloc.h
blob: 81099c84043f6b782af7e954896584a7bff62c77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// SPDX-License-Identifier: LGPL-2.1
#ifndef __TOOLS_LINUX_ZALLOC_H
#define __TOOLS_LINUX_ZALLOC_H

#include <stddef.h>

void *zalloc(size_t size);
void __zfree(void **ptr);

#define zfree(ptr) __zfree((void **)(ptr))

#endif // __TOOLS_LINUX_ZALLOC_H