MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / getValue

Method getValue

libapp2sys/src/main/cpp/procutil.h:137–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 }
136
137 int64_t getValue(uint32_t index) {
138 char *ptr = line;
139 uint32_t spaceCount = 0;
140 while (*ptr != '\0') {
141 if (*ptr == ' ') {
142 spaceCount++;
143 }
144 if (spaceCount == index) {
145 return atoi(ptr);
146 }
147 ptr++;
148 }
149 return -1;
150 }
151};
152
153

Callers 2

runMethod · 0.80
startMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected