mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 03:13:29 +08:00
18 lines
304 B
C
18 lines
304 B
C
/* See LICENSE of license details. */
|
|
|
|
#include <unistd.h>
|
|
|
|
#include "stub.h"
|
|
|
|
|
|
void _exit(int code)
|
|
{
|
|
const char message[] = "\nProgram has exited with code:";
|
|
|
|
write(STDERR_FILENO, message, sizeof(message) - 1);
|
|
// write_hex(STDERR_FILENO, code);
|
|
// write(STDERR_FILENO, "\n", 1);
|
|
|
|
for (;;);
|
|
}
|