MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / copy_udev_string

Function copy_udev_string

lib/hidapi/linux/hid.c:185–188  ·  view source on GitHub ↗

Get an attribute value from a udev_device and return it as a whar_t string. The returned string must be freed with free() when done.*/

Source from the content-addressed store, hash-verified

183/* Get an attribute value from a udev_device and return it as a whar_t
184 string. The returned string must be freed with free() when done.*/
185static wchar_t *copy_udev_string(struct udev_device *dev, const char *udev_name)
186{
187 return utf8_to_wchar_t(udev_device_get_sysattr_value(dev, udev_name));
188}
189
190/*
191 * Gets the size of the HID item at the given position

Callers 1

Calls 1

utf8_to_wchar_tFunction · 0.70

Tested by

no test coverage detected