aboutsummaryrefslogtreecommitdiff
path: root/src/lib/include/stdlib.h
blob: e451c52af52632ef2db97451e54e901d81e5c696 (plain) (blame)
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
26
27
28
29
30
31
#pragma once

#include <kogata/malloc.h>
#include <kogata/syscall.h>

#define EXIT_SUCCESS 0
#define EXIT_FAILURE 255

#define exit sc_exit

int rand(void);
//int rand_r(unsigned int *seedp);
void srand(unsigned int seed);

#define RAND_MAX 1

void abort() __attribute__((__noreturn__));


double strtod(const char *nptr, char **endptr);
float strtof(const char *nptr, char **endptr);

char *getenv(const char *name);

int system(const char *command);

int abs(int j);



/* vim: set sts=0 ts=4 sw=4 tw=0 noet :*/