From e223e635cc53fa11e473cdbc864eb69a3da5f290 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 16 Aug 2020 15:55:19 -0400 Subject: add skeleton of symbols from C11 LIB_EXT1 --- src/string/strerrorlen_s.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/string/strerrorlen_s.c (limited to 'src/string/strerrorlen_s.c') diff --git a/src/string/strerrorlen_s.c b/src/string/strerrorlen_s.c new file mode 100644 index 00000000..8b0d99bf --- /dev/null +++ b/src/string/strerrorlen_s.c @@ -0,0 +1,13 @@ +#include "string.h" + +size_t strerrorlen_s(errno_t errnum) +{ + __C_EXT(1, 201112L); + char buffer[1024]; + strerror_s(buffer, sizeof(buffer), errnum); + return strlen(buffer); +} + +/* +CEXT1(201112) +*/ -- cgit v1.2.1