---
title: "CFBundleGetFunctionPointerForName(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbundlegetfunctionpointerforname(_:_:)"
---

# CFBundleGetFunctionPointerForName(_:_:)

Returns a pointer to a function in a bundle’s executable code using the function name as the search key.

## Declaration

```swift
func CFBundleGetFunctionPointerForName(_ bundle: CFBundle!, _ functionName: CFString!) -> UnsafeMutableRawPointer!
```

## Parameters

- `bundle`: The bundle to examine.
- `functionName`: The name of the function to locate.

## Return Value

Return Value A pointer to a function in a bundle’s executable code, or NULL if functionName cannot be found. Ownership follows the The Get Rule.

## Discussion

Discussion Calling this function will cause the bundle’s code to be loaded if necessary.

## See Also

### Managing Executable Code

- [CFBundleGetDataPointerForName(_:_:)](corefoundation/cfbundlegetdatapointerforname(_:_:).md)
- [CFBundleGetDataPointersForNames(_:_:_:)](corefoundation/cfbundlegetdatapointersfornames(_:_:_:).md)
- [CFBundleGetFunctionPointersForNames(_:_:_:)](corefoundation/cfbundlegetfunctionpointersfornames(_:_:_:).md)
- [CFBundleGetPlugIn(_:)](corefoundation/cfbundlegetplugin(_:).md)
