From 90e1ac374b51f03b2b58c2cc67cde71c39b693df Mon Sep 17 00:00:00 2001 From: Colin Leroy-Mira Date: Thu, 3 Jul 2025 23:43:23 +0200 Subject: [PATCH] Add strndup char* __fastcall__ strndup (const char* S, size_t maxlen); --- doc/funcref.sgml | 31 ++++++++++++++++++ include/string.h | 1 + libsrc/common/strndup.s | 56 ++++++++++++++++++++++++++++++++ test/val/lib_common_strndup.c | 60 +++++++++++++++++++++++++++++++++++ 4 files changed, 148 insertions(+) create mode 100644 libsrc/common/strndup.s create mode 100644 test/val/lib_common_strndup.c diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 82d5cf8bb..9138e132f 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -785,6 +785,7 @@ communication, see also testcode/lib/ser-test.c. + @@ -5621,6 +5622,7 @@ be used in presence of a prototype. , , + @@ -7774,6 +7776,35 @@ be used in presence of a prototype. , + + + + + + + +strndup