<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "OpenDirectory",
  "identifier" : "/documentation/OpenDirectory/ODNodeCreateCopy(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Open Directory"
    ],
    "preciseIdentifier" : "c:@F@ODNodeCreateCopy"
  },
  "title" : "ODNodeCreateCopy(_:_:_:)"
}
-->

# ODNodeCreateCopy(_:_:_:)

Returns a copy of an existing node.

```
func ODNodeCreateCopy(_ allocator: CFAllocator!, _ node: ODNodeRef!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Unmanaged<ODNodeRef>!
```

## Parameters

`allocator`

The memory allocator to use. If `NULL`, the default allocator is used.

`node`

The node to copy.

`error`

An error reference for error details. Can be `NULL`.

## Return Value

A copy of `inNode`.

## Discussion

The copy includes remote credentials used for proxy and node authentication.

---

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)