MCPcopy Create free account
hub / github.com/apache/cloudberry / strtoint

Function strtoint

src/common/string.c:49–58  ·  view source on GitHub ↗

* strtoint --- just like strtol, but returns int not long */

Source from the content-addressed store, hash-verified

47 * strtoint --- just like strtol, but returns int not long
48 */
49int
50strtoint(const char *pg_restrict str, char **pg_restrict endptr, int base)
51{
52 long val;
53
54 val = strtol(str, endptr, base);
55 if (val != (int) val)
56 errno = ERANGE;
57 return (int) val;
58}
59
60
61/*

Callers 15

get_path_allFunction · 0.85
jsonb_get_elementFunction · 0.85
push_pathFunction · 0.85
setPathArrayFunction · 0.85
DecodeDateTimeFunction · 0.85
DecodeTimeOnlyFunction · 0.85
DecodeTimeFunction · 0.85
DecodeNumberFunction · 0.85
DecodeTimezoneFunction · 0.85
DecodeIntervalFunction · 0.85
buildDefItemFunction · 0.85
nodeTokenTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected