www.digitalmars.com

D Programming Language 1.0

Last update Wed Apr 23 23:16:41 2008

std.c.stdlib

C's <stdlib.h> D Programming Language runtime library

Authors:
Walter Bright, Digital Mars, http://www.digitalmars.com

License:
Public Domain

struct div_t;
struct ldiv_t;
struct lldiv_t;
div_t div(int, int);
ldiv_t ldiv(int, int);
lldiv_t lldiv(long, long);
const int EXIT_SUCCESS;
const int EXIT_FAILURE;
int atexit(void function());
void exit(int);
void _exit(int);
int system(char*);
void* alloca(uint);
void* calloc(uint, uint);
void* malloc(uint);
void* realloc(void*, uint);
void free(void*);
void* bsearch(void*, void*, uint, uint, int function(void*, void*));
void qsort(void* base, uint nelems, uint elemsize, int function(void*, void*) compare);
char* getenv(char*);
ditto

int setenv(char*, char*, int);
extension to ISO C standard, not available on all platforms

ditto

void unsetenv(char*);
int rand();
void srand(uint);
int random(int num);
void randomize();
int getErrno();
int setErrno(int);
const int ERANGE;
double atof(char*);
int atoi(char*);
int atol(char*);
float strtof(char*, char**);
double strtod(char*, char**);
real strtold(char*, char**);
long strtol(char*, char**, int);
uint strtoul(char*, char**, int);
long atoll(char*);
long strtoll(char*, char**, int);
ulong strtoull(char*, char**, int);
char* itoa(int, char*, int);
char* ultoa(uint, char*, int);
int mblen(char* s, uint n);
int mbtowc(wchar* pwc, char* s, uint n);
int wctomb(char* s, wchar wc);
uint mbstowcs(wchar* pwcs, char* s, uint n);
uint wcstombs(char* s, wchar* pwcs, uint n);
extension to ISO C standard, not available on all platforms

ditto