D Programming Language 2.0

- Comments
- D
- Search
- Home

Last update Sat Feb 14 12:00:13 2009

# 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);
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);
  extension to ISO C standard, not available on all platforms
int unsetenv(const char*);
  extension to ISO C standard, not available on all platforms
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);

Copyright © 1999-2009 by Digital Mars, All Rights Reserved | Page generated by Ddoc.