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

Function _Config_ParseNonNegativeInteger

src/configuration/config.c:134–142  ·  view source on GitHub ↗

parse non-negative integer return true if string represents an integer >= 0

Source from the content-addressed store, hash-verified

132// parse non-negative integer
133// return true if string represents an integer >= 0
134static inline bool _Config_ParseNonNegativeInteger
135(
136 const char *integer_str,
137 long long *value
138) {
139 bool res = _Config_ParseInteger(integer_str, value);
140 // Return an error code if integer parsing fails or value is negative.
141 return (res == true && *value >= 0);
142}
143
144// return true if 'str' is either "yes" or "no" otherwise returns false
145// sets 'value' to true if 'str' is "yes"

Callers 1

Config_Option_setFunction · 0.85

Calls 1

_Config_ParseIntegerFunction · 0.85

Tested by

no test coverage detected