diff options
Diffstat (limited to 'src/string/strnlen_s.c')
| -rw-r--r-- | src/string/strnlen_s.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/string/strnlen_s.c b/src/string/strnlen_s.c index f46ddcb2..3755f7d8 100644 --- a/src/string/strnlen_s.c +++ b/src/string/strnlen_s.c @@ -1,22 +1,13 @@ -#if 0 - #include <string.h> +#include "_safety.h" size_t strnlen_s(const char *s, size_t maxsize) { - __C_EXT(1, 201112L); - size_t i = 0; - while (i < maxlen) { - if (s[i] == '\0') - return i; - i++; - } - return i; + SIGNAL_SAFE(0); + (void)s; + return maxsize; } /* CEXT1(201112) */ - - -#endif |
