summaryrefslogtreecommitdiff
path: root/src/string/strerrorlen_s.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-16 15:55:19 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-16 15:55:19 -0400
commite223e635cc53fa11e473cdbc864eb69a3da5f290 (patch)
treed481ca6fb0b7f4184f3ec259a6f9c37d76e56a26 /src/string/strerrorlen_s.c
parent700fbd205a1a428677876d322606b9a354221892 (diff)
add skeleton of symbols from C11 LIB_EXT1
Diffstat (limited to 'src/string/strerrorlen_s.c')
-rw-r--r--src/string/strerrorlen_s.c13
1 files changed, 13 insertions, 0 deletions
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)
+*/