diff options
Diffstat (limited to 'tests/chapters/shim/string-extra.h')
| -rw-r--r-- | tests/chapters/shim/string-extra.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <string.h> +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; } |
