Function libiio_sys::iio_device_find_attr
source · [−]pub unsafe extern "C" fn iio_device_find_attr(
dev: *const iio_device,
name: *const c_char
) -> *const c_char
Expand description
@brief Try to find a device-specific 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 attribute @return On success, a pointer to a static NULL-terminated string @return If the name does not correspond to any known attribute of the given device, NULL is returned
NOTE: This function is useful to detect the presence of an attribute. It can also be used to retrieve the name of an attribute as a pointer to a static string from a dynamically allocated string.