MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / bundleLongName

Function bundleLongName

Trash/stringTable.c:353–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353char *
354bundleLongName(
355 char *bundleName
356)
357{
358 char *table, *name, *val;
359 INTN, size;
360
361 if ((table = loadLocalizableStrings(bundleName)) != 0 &&
362 getValueForStringTableKey(table,"Long Name", &val, &size) == YES) {
363 name = malloc(size+1);
364 strncpy(name, val, size);
365 free(table);
366 } else {
367 name = newString(bundleName);
368 }
369 return name;
370}
371
372int sysConfigValid;
373

Callers

nothing calls this directly

Calls 5

loadLocalizableStringsFunction · 0.85
mallocFunction · 0.50
strncpyFunction · 0.50
freeFunction · 0.50

Tested by

no test coverage detected