---
title: SCError()
framework: systemconfiguration
role: symbol
role_heading: Function
path: systemconfiguration/scerror()
---

# SCError()

Returns an error or status code associated with the most recent function call.

## Declaration

```swift
func SCError() -> Int32
```

## Return Value

Return Value The most recent status or error code generated as the result of calling a function defined by the System Configuration framework. See Status and Error Codes for descriptions of these codes.

## See Also

### Functions

- [SCCopyLastError()](systemconfiguration/sccopylasterror().md)
- [SCErrorString(_:)](systemconfiguration/scerrorstring(_:).md)
