summaryrefslogtreecommitdiff
path: root/src/string/strerrorlen_s.c
blob: c3ed56663c857c116750304aa7b5fdfc014f595d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <string.h>
#include "_safety.h"

size_t strerrorlen_s(errno_t errnum)
{
	SIGNAL_SAFE(0);
	char buffer[1024];
	strerror_s(buffer, sizeof(buffer), errnum);
	return strlen(buffer);
}

/*
CEXT1(201112)
*/