---
title: "SCErrorString(_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scerrorstring(_:)"
---

# SCErrorString(_:)

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

## Declaration

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

## Parameters

- `status`: A status or error code described in doc://com.apple.systemconfiguration/documentation/SystemConfiguration/1518026-status-and-error-codes. You typically get this code by calling doc://com.apple.systemconfiguration/documentation/SystemConfiguration/SCError() or doc://com.apple.systemconfiguration/documentation/SystemConfiguration/SCCopyLastError().

## Return Value

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

## See Also

### Functions

- [SCCopyLastError()](systemconfiguration/sccopylasterror().md)
- [SCError()](systemconfiguration/scerror().md)
