summaryrefslogtreecommitdiff
path: root/src/stdlib/abort_handler_s.c
blob: c08ebb4e31dc3b9718d357965426871a4ef63e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
//#include <errno.h>
#include "errno/errno_t.h"
#include "_stdlib.h"

void abort_handler_s(const char * restrict msg, void * restrict ptr, errno_t error)
{
	struct __constraint_info *ci = ptr;

	puts(msg);
	if (ci) {
		printf("In call to %s\n", ci->func);
	}
	if (error != 0) {
		printf("Provided error: %s (%d)\n", strerror(error), error);
	}
	abort();
}

/*
CEXT1(201112)
*/