Home
last modified time | relevance | path

Searched refs:strbuf (Results 1 – 1 of 1) sorted by relevance

/lk-master/dev/usb/
A Dusb.c134 uint16_t *strbuf = malloc(len * 2 + 2); in usb_add_string() local
135 if (!strbuf) { in usb_add_string()
140 strbuf[0] = 0x300 | (len * 2 + 2); in usb_add_string()
142 strbuf[i + 1] = (uint16_t)string[i]; in usb_add_string()
148 usb.strings[i].string.desc = strbuf; in usb_add_string()
156 free(strbuf); in usb_add_string()

Completed in 3 milliseconds