From 013e3857a1c6480dfd241fb14b36c55b0421939e Mon Sep 17 00:00:00 2001 From: YP3 Audiobook Date: Wed, 25 Nov 2026 17:45:43 -0500 Subject: initial commit --- tests/chapters/shim/string-extra.h | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/chapters/shim/string-extra.h (limited to 'tests/chapters/shim/string-extra.h') diff --git a/tests/chapters/shim/string-extra.h b/tests/chapters/shim/string-extra.h new file mode 100644 index 0000000..3303faf --- /dev/null +++ b/tests/chapters/shim/string-extra.h @@ -0,0 +1,3 @@ +#pragma once +#include +static inline char *strmemccpy(char *d, const char *s, size_t n){ char *r = memccpy(d,s,0,n); if(!r && n) d[n-1]=0; return r; } -- cgit v1.2.3