D 1.0   D 2.0
About Japanese Translation

Last update Sat Aug 30 15:19:28 2008

std.c.stdlib

C の <stdlib.h>

Source:
std/c/stdlib.d

Authors:
Walter Bright, Digital Mars, 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);


void* alloca(uint);


void* calloc(size_t, size_t);
void* alloca(uint);
void* calloc(size_t, size_t);
void* malloc(size_t);
void* realloc(void*, size_t);
void free(void*);


void* bsearch(in void*, in void*, size_t, size_t, int function(in const(void*), in const(void*)));
void qsort(void* base, size_t nelems, size_t elemsize, int function(in const(void*) elem1, in const(void*) elem2) compare);


char* getenv(const char*);


int setenv(const char*, const char*, int);
ISO C 標準に対する拡張、全てのプラットフォームで使えるわけではない

int unsetenv(const char*);
ISO C 標準に対する拡張、全てのプラットフォームで使えるわけではない

int rand();
void srand(uint);
int random(int num);
void randomize();
int getErrno();
int setErrno(int);


double atof(in char*);
int atoi(in char*);
int atol(in char*);
float strtof(in char*, char**);
double strtod(in char*, char**);
real strtold(in char*, char**);
long strtol(in char*, char**, int);
uint strtoul(in char*, char**, int);
long atoll(in char*);
long strtoll(in char*, char**, int);
ulong strtoull(in char*, char**, int);


char* itoa(int, char*, int);
char* ultoa(uint, char*, int);


int mblen(in char* s, size_t n);
int mbtowc(wchar* pwc, char* s, size_t n);
int wctomb(char* s, wchar_t wc);
size_t mbstowcs(wchar* pwcs, in char* s, size_t n);
size_t wcstombs(in char* s, wchar* pwcs, size_t n);