---
title: "scanInt32(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/scanner/scanint32(_:)"
---

# scanInt32(_:)

Scans for an int value from a decimal representation, returning a found value by reference.

## Declaration

```swift
func scanInt32(_ result: UnsafeMutablePointer<Int32>?) -> Bool
```

## Parameters

- `result`: Upon return, contains the scanned value. Contains INT_MAX or INT_MIN on overflow.

## Return Value

Return Value true if the receiver finds a valid decimal integer representation, otherwise false. Overflow is considered a valid integer representation.

## Discussion

Discussion Skips past excess digits in the case of overflow, so the receiver’s position is past the entire decimal representation. Invoke this method with NULL as intValue to simply scan past a decimal integer representation.

## See Also

### Related Documentation

- [intValue](foundation/nsstring/intvalue.md)

### Scanning Numeric Values

- [scanDecimal(_:)](foundation/scanner/scandecimal(_:).md)
- [scanDouble(_:)](foundation/scanner/scandouble(_:).md)
- [scanFloat(_:)](foundation/scanner/scanfloat(_:).md)
- [scanHexDouble(_:)](foundation/scanner/scanhexdouble(_:).md)
- [scanHexFloat(_:)](foundation/scanner/scanhexfloat(_:).md)
- [scanHexInt32(_:)](foundation/scanner/scanhexint32(_:).md)
- [scanHexInt64(_:)](foundation/scanner/scanhexint64(_:).md)
- [scanInt(_:)](foundation/scanner/scanint(_:).md)
- [scanInt64(_:)](foundation/scanner/scanint64(_:).md)
- [scanUnsignedLongLong(_:)](foundation/scanner/scanunsignedlonglong(_:).md)
