---
title: "CFLocaleCreateCopy(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cflocalecreatecopy(_:_:)"
---

# CFLocaleCreateCopy(_:_:)

Returns a copy of a locale.

## Declaration

```swift
func CFLocaleCreateCopy(_ allocator: CFAllocator!, _ locale: CFLocale!) -> CFLocale!
```

## Parameters

- `allocator`: The allocator to use to allocate memory for the new object. Pass NULL or kCFAllocatorDefault to use the current default allocator.
- `locale`: The locale object to copy.

## Return Value

Return Value A new locale that is a copy of locale. Returns NULL if there was a problem creating the object. Ownership follows the The Create Rule.

## See Also

### Creating a Locale

- [CFLocaleCopyCurrent()](corefoundation/cflocalecopycurrent().md)
- [CFLocaleCreate(_:_:)](corefoundation/cflocalecreate(_:_:).md)
- [CFLocaleGetSystem()](corefoundation/cflocalegetsystem().md)
