mirror of
https://github.com/tailix/libkernaux.git
synced 2025-10-02 23:13:56 -04:00
Main: libc/include/stdlib.h> Implement stubs for "exit" and "abort"
This commit is contained in:
parent
300bd833b0
commit
0446478ce4
2 changed files with 13 additions and 0 deletions
|
@ -6,6 +6,18 @@
|
|||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
// TODO: stub
|
||||
void exit(const int status __attribute__((unused)))
|
||||
{
|
||||
for (;;);
|
||||
}
|
||||
|
||||
// TODO: stub
|
||||
void abort()
|
||||
{
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int atoi(const char *str)
|
||||
{
|
||||
while (isspace(*str)) ++str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue