D Programming Language 2.0

- Comments
- D
- Search
- Home

Last update Tue Nov 27 20:25:06 2007

# std.c.stdlib

C's <stdlib.h>
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);
int system(const char*);
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*);
  ditto
int setenv(const char*, const char*, int);
  extension to ISO C standard, not available on all platforms
  ditto
void unsetenv(const char*);
int rand();
void srand(uint);
int random(int num);
void randomize();
int getErrno();
int setErrno(int);
const int ERANGE;
double atof(in char*);
int atoi(in char*);
int atol(in 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(in char*);
long strtoll(char*, char**, int);
ulong strtoull(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);
  extension to ISO C standard, not available on all platforms
  ditto

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