summaryrefslogtreecommitdiff
path: root/src/user/lib/include/stdlib.h
blob: 2df0bf7b763e0783fc22e21799832cb7c1421ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include <stddef.h>
#include <stdlib.h>

#ifndef NO_MALLOC_H
#include <user/lib/vendor/dlmalloc/malloc.h>
#endif

#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1

_Noreturn void abort(void);
_Noreturn void exit(int);

int mkstemp(char *template);
char *getenv(const char *name);
int system(const char *cmd);

int abs(int i);

int atoi(const char *s);
double atof(const char *s);