Add abort to stddef calling exit(-1)

This commit is contained in:
drmortalwombat 2024-09-21 18:12:10 +02:00
parent 87d2163f2d
commit f67d537c7c
2 changed files with 8 additions and 0 deletions

View File

@ -524,6 +524,12 @@ void exit(int status)
}
}
void abort(void)
{
exit(-1);
}
extern struct Heap {
Heap * next, * end;
} HeapNode;

View File

@ -37,6 +37,8 @@ long labs(long n);
void exit(int status);
void abort(void);
void * malloc(unsigned int size);
void free(void * ptr);