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

Function nvpair_get_string_array

freebsd/contrib/libnv/bsd_nvpair.c:1887–1898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1885}
1886
1887const char * const *
1888nvpair_get_string_array(const nvpair_t *nvp, size_t *nitems)
1889{
1890
1891 NVPAIR_ASSERT(nvp);
1892 PJDLOG_ASSERT(nvp->nvp_type == NV_TYPE_STRING_ARRAY);
1893
1894 if (nitems != NULL)
1895 *nitems = nvp->nvp_nitems;
1896
1897 return ((const char * const *)(intptr_t)nvp->nvp_data);
1898}
1899
1900const nvlist_t * const *
1901nvpair_get_nvlist_array(const nvpair_t *nvp, size_t *nitems)

Callers 3

nvlist_dumpFunction · 0.85
nvpair_cloneFunction · 0.85
nvpair_pack_string_arrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected