Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
LIBXO(3)		    Library Functions Manual		      LIBXO(3)

NAME
       xo_set_allocator	-- set allocation functions for	libxo

LIBRARY
       library "libxo"

SYNOPSIS
       #include	<libxo/xo.h>
       typedef void *(*xo_realloc_func_t)(void *, size_t);

       typedef void (*xo_free_func_t)(void *);

       void
       xo_set_allocator(xo_realloc_func_t			 realloc_func,
	   xo_free_func_t free_func);

DESCRIPTION
       The xo_set_allocator() function allows libxo to be used in environments
       where the standard realloc(3) and free(3) functions are not available.

       realloc_func should expect the same arguments as	realloc(3) and	return
       a  pointer to memory following the same convention.  free_func will re-
       ceive the same argument as free(3) and should release it, as  appropri-
       ate for the environment.

       By default, the standard	realloc(3) and free(3) functions are used.

SEE ALSO
       xo_emit(3), libxo(3)

ADDITIONAL DOCUMENTATION
       FreeBSD	uses libxo version 0.6.1.  Complete documentation can be found
       on github:

	     http://juniper.github.io/libxo/0.6.1/libxo-manual.html

       libxo lives on github as:

	     https://github.com/Juniper/libxo

       The latest release of libxo is available	at:

	     https://github.com/Juniper/libxo/releases

HISTORY
       The libxo library was added in FreeBSD 11.0.

AUTHOR
       Phil Shafer

FreeBSD	ports 15.0	       December	4, 2014			      LIBXO(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=xo_set_allocator&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help