Add compat strndupa() implementation from libnostd

This patch adds compat support, to *BSD and other UNIX, for the GLIBC
strndupa() function.  The implementation is taken from libnostd written
by William Ahern.

http://www.25thandclement.com/~william/projects/libnostd.html

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-06-04 15:07:17 +02:00
1 parent 5eb816b4c0
commit 1495a3f858
2 files changed
+57

No files matched your search

+1
View File
@@ -26,6 +26,7 @@
#include <string.h>
#include "strdupa.h"
#include "strndupa.h"
#ifndef strlcpy
size_t strlcpy (char *dst, const char *src, size_t siz);