Skip to main content

mbedtls_platform_set_calloc_free

Function mbedtls_platform_set_calloc_free 

Source
pub unsafe extern "C" fn mbedtls_platform_set_calloc_free(
    calloc_func: Option<unsafe extern "C" fn(arg1: usize, arg2: usize) -> *mut c_void>,
    free_func: Option<unsafe extern "C" fn(arg1: *mut c_void)>,
) -> c_int
Expand description

\brief This function dynamically sets the memory-management functions used by the library, during runtime.

\param calloc_func The \c calloc function implementation. \param free_func The \c free function implementation.

\return \c 0.