summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/include/stdlib.h
blob: 90f2fbbb760f25bc69fd70d02a1cb3c3d2e864fd (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
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _STDLIB_H
#define _STDLIB_H

#include <sys/cdefs.h>
#include <sys/types.h>

void *calloc(size_t nmemb, size_t size) __THROW;
void *malloc(size_t size) __THROW;
void free(void *ptr) __THROW;
void *realloc(void *ptr, size_t size) __THROW;

void *alloca(size_t size);

char *getenv(const char *name) __pure__;

int atexit(void (*function)(void)) __THROW;

double strtod(const char *nptr, char **endptr) __THROW;
long int strtol(const char *nptr, char **endptr, int base);
unsigned long int strtoul(const char *nptr, char **endptr, int base);

int __ltostr(char *s, int size, unsigned long i, int base, char UpCase);
#ifdef __GNUC__
long long int strtoll(const char *nptr, char **endptr, int base);
unsigned long long int strtoull(const char *nptr, char **endptr, int base);
int __lltostr(char *s, int size, unsigned long long i, int base, char UpCase);
#endif

int atoi(const char *nptr);

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

extern char **environ;


#endif