Initial commit of current C compiler sources, partly rebranded but not yet properly cleaned up!
This commit is contained in:
26
fakelibc/stdlib.h
Normal file
26
fakelibc/stdlib.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef _FAKELIBC_STDLIB_H
|
||||
#define _FAKELIBC_STDLIB_H
|
||||
|
||||
//typedef long size_t;
|
||||
#include <stddef.h>
|
||||
|
||||
void* malloc(long sz);
|
||||
void* calloc(long n, long sz);
|
||||
void* realloc(void* mem, long sz);
|
||||
void free(void* mem);
|
||||
char* getenv(const char* name);
|
||||
void exit(int x);
|
||||
|
||||
long strtol(const char* str, char**endvar, int base);
|
||||
long long strtoll(const char* str, char**endvar, int base);
|
||||
unsigned long strtoul(const char* str, char**endvar, int base);
|
||||
unsigned long long strtoull(const char* str, char**endvar, int base);
|
||||
|
||||
float strtof(const char* str, char**endvar);
|
||||
double strtod(const char* str, char**endvar);
|
||||
|
||||
double atof(const char* str);
|
||||
int atoi(const char* str);
|
||||
|
||||
/* From ifndef at top of file: */
|
||||
#endif
|
Reference in New Issue
Block a user