MCPcopy Create free account
hub / github.com/RsyncProject/rsync / getsectionbyname

Function getsectionbyname

loadparm.c:307–317  ·  view source on GitHub ↗

Find a section by name. Otherwise works like get_section. */

Source from the content-addressed store, hash-verified

305
306/* Find a section by name. Otherwise works like get_section. */
307static int getsectionbyname(char *name)
308{
309 int i;
310
311 for (i = section_list.count - 1; i >= 0; i--) {
312 if (strwiEQ(iSECTION(i).name, name))
313 break;
314 }
315
316 return i;
317}
318
319/* Add a new section to the sections array w/the default values. */
320static int add_a_section(char *name)

Callers 1

add_a_sectionFunction · 0.85

Calls 1

strwiEQFunction · 0.85

Tested by

no test coverage detected