git_allocator.gstrndup

Equivalent to the gstrdup function, but only duplicating at most n + 1 bytes

struct git_allocator
char* function(const(char)* str, size_t n, const(char)* file, int line) gstrndup;

Meta