MCPcopy Create free account
hub / github.com/apache/trafficserver / ink_atoi

Function ink_atoi

include/tscore/ParseRules.h:862–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

860int64_t ink_atoi64(const char *, int);
861
862static inline int
863ink_atoi(const char *str)
864{
865 int64_t val = ink_atoi64(str);
866
867 if (val > INT_MAX) {
868 return INT_MAX;
869 } else if (val < INT_MIN) {
870 return INT_MIN;
871 } else {
872 return static_cast<int>(val);
873 }
874}
875
876static inline int
877ink_atoi(const char *str, int len)

Callers 7

read_configMethod · 0.85
do_remap_requestMethod · 0.85
DecideCacheLookupMethod · 0.85
merge_warning_headerMethod · 0.85
Remap_redirectMethod · 0.85
validate_hdr_hostFunction · 0.85
test_ink_string.ccFile · 0.85

Calls 1

ink_atoi64Function · 0.85

Tested by

no test coverage detected