---
name: "struct_usb_string"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_usb_string"
---

# struct\_usb\_string(9)

wraps a C string and its USB id

## NAME

struct\_usb\_string - wraps a C string and its USB id

## SYNOPSIS

```
struct usb_string {
  u8 id;
  const char * s;
};
```

## MEMBERS

id

the (nonzero) ID for this string

s

the string, in UTF-8 encoding

## DESCRIPTION

If you're using **usb\_gadget\_get\_string**, use this to wrap a string together with its ID.

## AUTHOR

**David Brownell** \<dbrownell@users.sourceforge.net\>

Author.

## COPYRIGHT
