---
title: "SCPreferencesPathCreateUniqueChild(_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scpreferencespathcreateuniquechild(_:_:)"
---

# SCPreferencesPathCreateUniqueChild(_:_:)

Creates a new path component rooted at the specified path in the dictionary hierarchy.

## Declaration

```swift
func SCPreferencesPathCreateUniqueChild(_ prefs: SCPreferences, _ prefix: CFString) -> CFString?
```

## Parameters

- `prefs`: The preferences session.
- `prefix`: The parent path.

## Return Value

Return Value A string representing the new (unique) child path, or NULL if the specified path does not exist.
