libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
Loading...
Searching...
No Matches
core.c
Go to the documentation of this file.
1/*
2 * CDDL HEADER START
3 *
4 * This file and its contents are supplied under the terms of the
5 * Common Development and Distribution License ("CDDL"), version 1.0.
6 * You may only use this file in accordance with the terms of version
7 * 1.0 of the CDDL.
8 *
9 * A full copy of the text of the CDDL should have accompanied this
10 * source. A copy of the CDDL is also available via the Internet at
11 * http://www.illumos.org/license/CDDL.
12 *
13 * CDDL HEADER END
14*/
15/*
16 * Copyright 2023 Saso Kiselkov. All rights reserved.
17 */
20#include <acfutils/core.h>
21#include <acfutils/safe_alloc.h>
22
23#include <stdlib.h>
24
29const char *libacfutils_version = LIBACFUTILS_VERSION;
30
36void *
37lacf_malloc(size_t n)
38{
39 return (safe_malloc(n));
40}
41
48void
49lacf_free(void *buf)
50{
51 free(buf);
52}
void lacf_free(void *buf)
Definition core.c:49
const char * libacfutils_version
Definition core.c:29
void * lacf_malloc(size_t n)
Definition core.c:37
static void * safe_malloc(size_t size)
Definition safe_alloc.h:56