---
title: initWithCString
framework: kernel
role: pseudoSymbol
path: kernel/ossymbol/1808026-initwithcstring
---

# initWithCString

Overridden to prevent creation of duplicate symbols.

## Declaration

```occ
virtual bool initWithCString(
 const char *cString); 
```

## Parameters

- `cString`: Unused.

## Return Value

Return Value false.

## Overview

Overview Overrides OSString's implementation to prevent creation of distinct OSSymbols with the same string value.

## See Also

### Miscellaneous

- [free](kernel/ossymbol/1808021-free.md)
- [initWithCStringNoCopy](kernel/ossymbol/1808036-initwithcstringnocopy.md)
- [initWithString](kernel/ossymbol/1808054-initwithstring.md)
- [isEqualTo](kernel/ossymbol/1808078-isequalto.md)
- [isEqualTo(const char *)](kernel/ossymbol/1808093-isequalto.md)
- [isEqualTo(const OSSymbol *)](kernel/ossymbol/1808114-isequalto.md)
- [taggedRelease(const void *)](kernel/ossymbol/1808137-taggedrelease.md)
- [taggedRelease(const void *, const int)](kernel/ossymbol/1808154-taggedrelease.md)
- [withCString](kernel/ossymbol/1808171-withcstring.md)
- [withCStringNoCopy](kernel/ossymbol/1808179-withcstringnocopy.md)
- [withString](kernel/ossymbol/1808192-withstring.md)
