blob: a548a915ff1863287ff3d6c6e120f485ab8b5c21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* See LICENSE of license details. */
#include <unistd.h>
#include "platform.h"
void __wrap__exit(int code)
{
const char message[] = "\nProgam has exited with code:";
write(STDERR_FILENO, message, sizeof(message) - 1);
write_hex(STDERR_FILENO, code);
write(STDERR_FILENO, "\n", 1);
for (;;);
}
|