Luna/libs/libc/src/stdlib.cpp

22 lines
310 B
C++
Raw Normal View History

#include <luna.h>
#include <stdlib.h>
#include <sys/syscall.h>
#include <unistd.h>
extern "C"
{
__lc_noreturn void abort()
{
_exit(-1);
}
int atoi(const char*)
{
NOT_IMPLEMENTED("atoi");
}
char* getenv(const char*)
{
NOT_IMPLEMENTED("getenv");
}
}