Function projectm_rs::projectm_alloc_settings
source · [−]pub unsafe extern "C" fn projectm_alloc_settings(
) -> *mut projectm_settings
Expand description
@brief Allocates memory for a projectm_settings struct and returns the pointer.
This will not allocate memory for the char* members in the struct. These will be set to NULL initially. To store a string in these members, use projectm_alloc_string() to allocate the required memory. Do not use malloc()!
To free the allocated memory, call projectm_free_settings(). Do not use free()!
@return A pointer to a zero-initialized projectm_settings struct.