---
title: "sel_getName(_:)"
framework: objectivec
role: symbol
role_heading: Function
path: "objectivec/sel_getname(_:)"
---

# sel_getName(_:)

Returns the name of the method specified by a given selector.

## Declaration

```swift
func sel_getName(_ sel: Selector) -> UnsafePointer<CChar>
```

## Parameters

- `sel`: A pointer of type doc://com.apple.objectivec/documentation/ObjectiveC/SEL. Pass the selector whose name you wish to determine.

## Return Value

Return Value A C string indicating the name of the selector.

## See Also

### Working with Selectors

- [sel_registerName(_:)](objectivec/sel_registername(_:).md)
- [sel_getUid(_:)](objectivec/sel_getuid(_:).md)
- [sel_isEqual(_:_:)](objectivec/sel_isequal(_:_:).md)
