| 200 | } |
| 201 | |
| 202 | const char *iniLine(const char *section, int line) |
| 203 | { |
| 204 | iniline_t *ptr = ini; |
| 205 | |
| 206 | while(ptr != NULL) |
| 207 | { |
| 208 | if(strcmp(section, ptr->data) == 0) |
| 209 | { |
| 210 | break; |
| 211 | } |
| 212 | |
| 213 | ptr = ptr->next; |
| 214 | } |
| 215 | |
| 216 | if(ptr) |
| 217 | { |
| 218 | ptr = ptr->next; |
| 219 | |
| 220 | while(ptr != NULL) |
| 221 | { |
| 222 | if(ptr->issection) |
| 223 | { |
| 224 | break; |
| 225 | } |
| 226 | |
| 227 | if(line == 0) |
| 228 | { |
| 229 | return ptr->data; |
| 230 | } |
| 231 | |
| 232 | line--; |
| 233 | |
| 234 | ptr = ptr->next; |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | return NULL; |
| 239 | } |
| 240 | |
| 241 | const char *iniValueDef(const char *section, const char *variable, const char *defvalue) |
| 242 | { |
no outgoing calls
no test coverage detected