39 lines
638 B
C
39 lines
638 B
C
//
|
|
// Created by rick on 10-03-21.
|
|
//
|
|
|
|
#ifndef NEW_KERNEL_STDLIB_H
|
|
#define NEW_KERNEL_STDLIB_H
|
|
|
|
#ifdef __kernel__
|
|
#define INCLUDE_STDLIB
|
|
|
|
#include <myke/mem/malloc.h>
|
|
|
|
#undef INCLUDE_STDLIB
|
|
#else
|
|
#error "Userspace not implemented"
|
|
#endif
|
|
|
|
void abort();
|
|
|
|
int atexit(void (*)(void));
|
|
|
|
int atoi(const char *);
|
|
|
|
char *itoa(int value, char *buffer, int base);
|
|
|
|
char *getenv(const char *);
|
|
|
|
int abs(int val);
|
|
|
|
long labs(long val);
|
|
|
|
long long llabs(long long val);
|
|
|
|
void qsort(void *base, size_t num, size_t size, int (*compar)(const void *, const void *));
|
|
|
|
long strtol(const char *nptr, char **endptr, int base);
|
|
|
|
#endif //NEW_KERNEL_STDLIB_H
|