diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-30 15:29:55 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-30 15:29:55 -0500 |
| commit | 9b6f6642ee252a9bedbe267fd85376fc9359c74f (patch) | |
| tree | 5676ac47d416ef56b8134d94df49110abc53998f /src/string/memccpy.c | |
| parent | 7f9129145f2293cb8c9052ff1f395226421b0ae4 (diff) | |
update standard and safety checks
Diffstat (limited to 'src/string/memccpy.c')
| -rw-r--r-- | src/string/memccpy.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/string/memccpy.c b/src/string/memccpy.c index 80143e32..17ee0c4b 100644 --- a/src/string/memccpy.c +++ b/src/string/memccpy.c @@ -1,9 +1,10 @@ -#if 0 - #include <string.h> +#include "_safety.h" void *memccpy(void * restrict s1, const void * restrict s2, int c, size_t n) { + SIGNAL_SAFE(0); + unsigned char *dst = s1; const unsigned char *src = s2; size_t i = 0; @@ -23,6 +24,3 @@ void *memccpy(void * restrict s1, const void * restrict s2, int c, size_t n) /* XOPEN(4) */ - - -#endif |
