| 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 |