Name
usb_get_string
-- Retrieves a string descriptor from a device
Description
int usb_get_string
(usb_dev_handle *dev);
int index);
int langid);
char *buf);
size_t buflen);
usb_get_string retrieves the string descriptor specified by index and langid from a device. The string will be returned in Unicode as specified by the USB specification. Returns the number of bytes returned in buf or 0 on error.