<!--
{
  "availability" : [
    "macOS: 10.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/SCPreferencesPathCreateUniqueChild(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@F@SCPreferencesPathCreateUniqueChild"
  },
  "title" : "SCPreferencesPathCreateUniqueChild(_:_:)"
}
-->

# SCPreferencesPathCreateUniqueChild(_:_:)

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

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

## Parameters

`prefs`

The preferences session.

`prefix`

The parent path.

## Return Value

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

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)