MCPcopy Create free account
hub / github.com/Snaipe/Criterion / array_length

Function array_length

src/csptr/array.c:26–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include "array.h"
25
26CSPTR_PURE size_t array_length(void *ptr) {
27 s_meta_array *meta = get_smart_ptr_meta(ptr);
28 return meta ? meta->nmemb : 0;
29}
30
31CSPTR_PURE size_t array_type_size(void *ptr) {
32 s_meta_array *meta = get_smart_ptr_meta(ptr);

Callers

nothing calls this directly

Calls 1

get_smart_ptr_metaFunction · 0.85

Tested by

no test coverage detected