scanInt32(_:)
Scans for an int value from a decimal representation, returning a found value by reference.
Declaration
func scanInt32(_ result: UnsafeMutablePointer<Int32>?) -> BoolParameters
- result:
Upon return, contains the scanned value. Contains
INT_MAXorINT_MINon overflow.
Return Value
true if the receiver finds a valid decimal integer representation, otherwise false. Overflow is considered a valid integer representation.
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.