Name
usb_get_string_simple
-- Retrieves a string descriptor from a device using the first language
Description
int usb_get_string_simple
(usb_dev_handle *dev);
int index);
char *buf);
size_t buflen);
usb_get_string_simple is a wrapper around usb_get_string that retrieves the string description specified by index in the first language for the descriptor and converts it into C style ASCII. Returns number of bytes returned in buf or 0 on error.