diff --git a/include/stdlib.c b/include/stdlib.c index 7b5709e..c9f2ab6 100644 --- a/include/stdlib.c +++ b/include/stdlib.c @@ -524,6 +524,12 @@ void exit(int status) } } +void abort(void) +{ + exit(-1); +} + + extern struct Heap { Heap * next, * end; } HeapNode; diff --git a/include/stdlib.h b/include/stdlib.h index 4d4eac5..eb117e0 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -37,6 +37,8 @@ long labs(long n); void exit(int status); +void abort(void); + void * malloc(unsigned int size); void free(void * ptr);