MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cupsdAddString

Function cupsdAddString

scheduler/main.c:1212–1223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210 */
1211
1212int /* O - 1 on success, 0 on failure */
1213cupsdAddString(cups_array_t **a, /* IO - String array */
1214 const char *s) /* I - String to copy and add */
1215{
1216 if (!*a)
1217 *a = cupsArrayNew3((cups_array_func_t)strcmp, NULL,
1218 (cups_ahash_func_t)NULL, 0,
1219 (cups_acopy_func_t)strdup,
1220 (cups_afree_func_t)free);
1221
1222 return (cupsArrayAdd(*a, (char *)s));
1223}
1224
1225
1226/*

Callers 6

set_printer_defaultsFunction · 0.85
cupsdReadConfigurationFunction · 0.85
read_policyFunction · 0.85
set_policy_defaultsFunction · 0.85
cupsdLoadAllClassesFunction · 0.85
cupsdLoadAllPrintersFunction · 0.85

Calls 2

cupsArrayNew3Function · 0.85
cupsArrayAddFunction · 0.85

Tested by

no test coverage detected