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
29
const
char
*
libacfutils_version
= LIBACFUTILS_VERSION;
30
36
void
*
37
lacf_malloc
(
size_t
n)
38
{
39
return
(
safe_malloc
(n));
40
}
41
48
void
49
lacf_free
(
void
*buf)
50
{
51
free(buf);
52
}
lacf_free
void lacf_free(void *buf)
Definition
core.c:49
libacfutils_version
const char * libacfutils_version
Definition
core.c:29
lacf_malloc
void * lacf_malloc(size_t n)
Definition
core.c:37
core.h
safe_alloc.h
safe_malloc
static void * safe_malloc(size_t size)
Definition
safe_alloc.h:56
Generated by
1.9.8