]>
git.saurik.com Git - minimal.git/blob - string.h
c259399bb894721f8368da3dddd8a60e881dc8d6
1 #ifndef MINIMAL_STRING_H
2 #define MINIMAL_STRING_H
6 _unused
static char *strndup_(const char *src
, int len
) {
7 char *dst
= malloc(len
+ 1);
9 strncpy(dst
, src
, len
);
14 #endif/*MINIMAL_STRING_H*/