MobilityDB 1.3
Loading...
Searching...
No Matches

◆ pg_strtoint32()

int32 pg_strtoint32 ( const char *  s)

Return an input string converted to a signed 32 bit integer.

Allows any number of leading or trailing whitespace characters. Will throw ereport() upon bad input format or overflow.

Returns
On error return PG_INT32_MAX;
Note
Accumulate input as a negative number, to deal with two's complement representation of the most negative number, which can't be represented as a positive number.