pub type SDL_calloc_func = Option<unsafe extern "C" fn(nmemb: usize, size: usize) -> *mut c_void>;Expand description
A callback used to implement SDL_calloc().
SDL will always ensure that the passed nmemb and size are both greater
than 0.
§Parameters
nmemb: the number of elements in the array.size: the size of each element of the array.
§Return value
Returns a pointer to the allocated array, or NULL if allocation failed.
§Thread safety
It should be safe to call this callback from any thread.
§Availability
This datatype is available since SDL 3.2.0.
§See also
Aliased Type§
pub enum SDL_calloc_func {
None,
Some(unsafe extern "C" fn(usize, usize) -> *mut c_void),
}