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

Function cupsdSetString

scheduler/main.c:1323–1337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1321 */
1322
1323void
1324cupsdSetString(char **s, /* O - New string */
1325 const char *v) /* I - String value */
1326{
1327 if (!s || *s == v)
1328 return;
1329
1330 if (*s)
1331 free(*s);
1332
1333 if (v)
1334 *s = strdup(v);
1335 else
1336 *s = NULL;
1337}
1338
1339
1340/*

Callers 15

cupsdAddSubscriptionFunction · 0.85
cupsdReadClientFunction · 0.85
is_cgiFunction · 0.85
cupsdInitEnvFunction · 0.85
add_classFunction · 0.85
add_jobFunction · 0.85
add_job_subscriptionsFunction · 0.85
add_printerFunction · 0.85
create_local_bg_threadFunction · 0.85
create_local_printerFunction · 0.85
create_subscriptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected