MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_strndup

Function mi_strndup

3rd/mimalloc-2.0.9/src/alloc.c:793–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791}
792
793mi_decl_nodiscard mi_decl_restrict char* mi_strndup(const char* s, size_t n) mi_attr_noexcept {
794 return mi_heap_strndup(mi_get_default_heap(),s,n);
795}
796
797#ifndef __wasi__
798// `realpath` using mi_malloc

Callers

nothing calls this directly

Calls 2

mi_heap_strndupFunction · 0.85
mi_get_default_heapFunction · 0.85

Tested by

no test coverage detected