<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/SCErrorString(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@F@SCErrorString"
  },
  "title" : "SCErrorString(_:)"
}
-->

# SCErrorString(_:)

Returns a string describing the specified status code or error code.

```
func SCErrorString(_ status: Int32) -> UnsafePointer<CChar>
```

## Parameters

`status`

A status or error code described in [Status and Error Codes](/documentation/SystemConfiguration/1518026-status-and-error-codes). You typically get this code by calling [`SCError()`](/documentation/SystemConfiguration/SCError()) or [`SCCopyLastError()`](/documentation/SystemConfiguration/SCCopyLastError()).

## Return Value

The message string associated with the status or error identified by `status`.

## 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)