MCPcopy Create free account
hub / github.com/JHRobotics/softgpu / iniLine

Function iniLine

winini.c:202–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202const 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
241const char *iniValueDef(const char *section, const char *variable, const char *defvalue)
242{

Callers 2

apply_deleteFunction · 0.85
apply_reg_fixesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected