Function demes::ffi::demes_pulse_source
source · #[no_mangle]
pub extern "C" fn demes_pulse_source(
pulse: &Pulse,
at: usize
) -> *mut c_char
Expand description
Get the source deme of a Pulse
.
§Parameters
at
the index of the pulse.
§Returns
- The name of a source deme if
at
is in range. - A NULL pointer otherwise.
§Notes
- A non-NULL return value is a new allocation that must be freed by
demes_c_char_deallocate
. demes_pulse_num_sources
can be used to get the range of valid values forat
.