summaryrefslogtreecommitdiff
path: root/src/user/lib/include/stdlib.h
blob: 8a862659616cc28036d1212623d7fd892c5507a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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);

const char *getprogname(void);
void setprogname(const char *progname);

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);