Function libiio_sys::iio_device_find_debug_attr
source · pub unsafe extern "C" fn iio_device_find_debug_attr(
dev: *const iio_device,
name: *const c_char
) -> *const c_char
Expand description
@brief Try to find a debug attribute by its name @param dev A pointer to an iio_device structure @param name A NULL-terminated string corresponding to the name of the debug attribute @return On success, a pointer to a static NULL-terminated string @return If the name does not correspond to any known debug attribute of the given device, NULL is returned
NOTE: This function is useful to detect the presence of a debug attribute. It can also be used to retrieve the name of a debug attribute as a pointer to a static string from a dynamically allocated string.