Function xmlMalloc
Source #[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlMalloc(size: usize) -> *mut c_void
Expand description
Allocate memory.
§UPSTREAM-PARITY
void *xmlMalloc(size_t size);
Returns a pointer to the allocated memory, or NULL on failure.
The allocated memory is not initialized (like malloc).
§SAFETY
- The returned pointer must be freed with
xmlFree
size may be 0 (returns a valid non-NULL pointer or NULL)