---
title: getCStringNoCopy
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osstring/getcstringnocopy
---

# getCStringNoCopy

Returns a pointer to the OSString object’s internal data buffer.

## Declaration

```occ
const char * getCStringNoCopy() const;
```

## Return Value

Return Value A pointer to the string or NULL if the OSString has zero length. The string will be null terminated.

## See Also

### Getting a C String

- [OSStringGetStringPtr](driverkit/osstringgetstringptr.md)
- [OSStringPtr](driverkit/osstringptr.md)
