MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _Config_ParsePositiveInteger

Function _Config_ParsePositiveInteger

src/configuration/config.c:122–130  ·  view source on GitHub ↗

parse positive integer return true if string represents a positive integer > 0

Source from the content-addressed store, hash-verified

120// parse positive integer
121// return true if string represents a positive integer > 0
122static inline bool _Config_ParsePositiveInteger
123(
124 const char *integer_str,
125 long long *value
126) {
127 bool res = _Config_ParseInteger(integer_str, value);
128 // Return an error code if integer parsing fails or value is not positive.
129 return (res == true && *value > 0);
130}
131
132// parse non-negative integer
133// return true if string represents an integer >= 0

Callers 1

Config_Option_setFunction · 0.85

Calls 1

_Config_ParseIntegerFunction · 0.85

Tested by

no test coverage detected