std1.0.0-beta-7 SafeC docs

std :: str

Function std::str_ndup

#include <std/str.h> source ยท definition

?&heap char str_ndup(const &char s, unsigned long n)

Return a heap-allocated copy of at most the first n bytes of s (stopping at its terminator), NUL-terminated.