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

Function pwg_add_message

cups/ppd-cache.c:5509–5523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5507 */
5508
5509static void
5510pwg_add_message(cups_array_t *a, /* I - Message catalog */
5511 const char *msg, /* I - Message identifier */
5512 const char *str) /* I - Localized string */
5513{
5514 _cups_message_t *m; /* New message */
5515
5516
5517 if ((m = calloc(1, sizeof(_cups_message_t))) != NULL)
5518 {
5519 m->msg = strdup(msg);
5520 m->str = strdup(str);
5521 cupsArrayAdd(a, m);
5522 }
5523}
5524
5525
5526/*

Callers 1

_ppdCacheCreateWithPPDFunction · 0.85

Calls 1

cupsArrayAddFunction · 0.85

Tested by

no test coverage detected