MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / make_path

Function make_path

dependencies/hidapi/hidapi.c:349–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349static char *make_path(libusb_device *dev, int interface_number)
350{
351 char str[64];
352 snprintf(str, sizeof(str), "%04x:%04x:%02x",
353 libusb_get_bus_number(dev),
354 libusb_get_device_address(dev),
355 interface_number);
356 str[sizeof(str)-1] = '\0';
357
358 return strdup(str);
359}
360
361
362int HID_API_EXPORT hid_init(void)

Callers 2

hid_enumerateFunction · 0.85
hidapi.cFile · 0.85

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected