---
title: OSStringGetLength
framework: driverkit
role: symbol
role_heading: Function
path: driverkit/osstringgetlength
---

# OSStringGetLength

## Declaration

```occ
size_t OSStringGetLength(OSStringPtr string);
```

## See Also

### Inspecting a String

- [getLength](driverkit/osstring/getlength.md)
