Returns the next string in the split data */
| 31 | |
| 32 | /* Returns the next string in the split data */ |
| 33 | static char* next(ini_t *ini, char *p) { |
| 34 | p += strlen(p); |
| 35 | while (p < ini->end && *p == '\0') { |
| 36 | p++; |
| 37 | } |
| 38 | return p; |
| 39 | } |
| 40 | |
| 41 | static void trim_back(ini_t *ini, char *p) { |
| 42 | while (p >= ini->data && (*p == ' ' || *p == '\t' || *p == '\r')) { |
no outgoing calls