Utilities
-
void fluxEngine_C_v1_string_free(char *string)
Free a string.
Frees the memory of a string returned by various functions of fluxEngine. This must be used to free the string, as the allocator that fluxEngine uses internally may not be the same as the allocator used by the user of fluxEngine.
This function must only be called for strings returned by functions that indicate that the string has to be freed. Some functions return C strings that have a lifetime that is coupled to a given object.
It is safe to pass a
NULL
pointer to this function, in which case nothing will happen.- Parameters
string – The string to free
-
void fluxEngine_C_v1_id_free(void *id)
Free an id.
Frees the memory of an internal id returned by various functions of fluxEngine. This must be used to free the id, as the allocator that fluxEngine uses internally may not be the same as the allocator used by the user of fluxEngine.
It is safe to pass a
NULL
pointer to this function, in which case nothing will happen.- Parameters
id – The id to free
-
void fluxEngine_C_v1_wavelengths_free(double *wavelengths)
Free a wavelength list.
- Parameters
wavelengths – The wavelength list to free