MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nvlist_add_stringv

Function nvlist_add_stringv

freebsd/contrib/libnv/nvlist.c:1498–1516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1496}
1497
1498void
1499nvlist_add_stringv(nvlist_t *nvl, const char *name, const char *valuefmt,
1500 va_list valueap)
1501{
1502 nvpair_t *nvp;
1503
1504 if (nvlist_error(nvl) != 0) {
1505 ERRNO_SET(nvlist_error(nvl));
1506 return;
1507 }
1508
1509 nvp = nvpair_create_stringv(name, valuefmt, valueap);
1510 if (nvp == NULL) {
1511 nvl->nvl_error = ERRNO_OR_DEFAULT(ENOMEM);
1512 ERRNO_SET(nvl->nvl_error);
1513 } else {
1514 (void)nvlist_move_nvpair(nvl, nvp);
1515 }
1516}
1517
1518void
1519nvlist_add_null(nvlist_t *nvl, const char *name)

Callers 1

nvlist_add_stringfFunction · 0.85

Calls 2

nvlist_errorFunction · 0.85
nvpair_create_stringvFunction · 0.85

Tested by

no test coverage detected