libclap
1.0.0
Command Line Argument Parser for C
Loading...
Searching...
No Matches
include
clap
clap_allocator.h
Go to the documentation of this file.
1
6
#ifndef CLAP_ALLOCATOR_H
7
#define CLAP_ALLOCATOR_H
8
9
#include <stddef.h>
10
#include <
clap/clap_export.h
>
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
34
CLAP_EXPORT
void
clap_set_allocator
(
35
void
*(*malloc_fn)(
size_t
),
36
void
(*free_fn)(
void
*),
37
void
*(*realloc_fn)(
void
*,
size_t
)
38
);
39
40
/* clap_malloc, clap_calloc, clap_free, clap_realloc, clap_strdup, clap_strndup
41
* are internal utilities declared in clap_parser_internal.h */
42
43
#ifdef __cplusplus
44
}
45
#endif
46
47
#endif
/* CLAP_ALLOCATOR_H */
clap_set_allocator
CLAP_EXPORT void clap_set_allocator(void *(*malloc_fn)(size_t), void(*free_fn)(void *), void *(*realloc_fn)(void *, size_t))
Set custom memory allocator functions.
clap_export.h
Symbol export/import macros for libclap.
CLAP_EXPORT
#define CLAP_EXPORT
Definition
clap_export.h:42
Generated by
1.9.8