2 .\" # Copyright (c) 2014, Juniper Networks, Inc.
3 .\" # All rights reserved.
4 .\" # This SOFTWARE is licensed under the LICENSE provided in the
5 .\" # ../Copyright file. By downloading, installing, copying, or
6 .\" # using the SOFTWARE, you agree to be bound by the terms of that
8 .\" # Phil Shafer, July 2014
15 .Nd set allocation functions for libxo
20 .Sy typedef void *(*xo_realloc_func_t)(void *, size_t);
22 .Sy typedef void (*xo_free_func_t)(void *);
24 .Fn xo_set_allocator "xo_realloc_func_t realloc_func" "xo_free_func_t free_func"
30 to be used in environments
35 functions are not available.
38 should expect the same arguments as
41 a pointer to memory following the same convention.
43 will receive the same argument as
45 and should release it, as appropriate for the environment.
47 By default, the standard