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

Function nvpair_create_bool

freebsd/contrib/libnv/bsd_nvpair.c:1208–1214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1206}
1207
1208nvpair_t *
1209nvpair_create_bool(const char *name, bool value)
1210{
1211
1212 return (nvpair_allocv(name, NV_TYPE_BOOL, value ? 1 : 0,
1213 sizeof(uint8_t), 0));
1214}
1215
1216nvpair_t *
1217nvpair_create_number(const char *name, uint64_t value)

Callers 1

nvpair_cloneFunction · 0.85

Calls 1

nvpair_allocvFunction · 0.85

Tested by

no test coverage detected