Files
my-kern/include/stdlib.h

39 lines
673 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 __attribute__((__noreturn__)) abort();
int atexit(void (*)(void));
int atoi(const char *);
char *itoa(uint32_t 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