2 * D header file for C99.
4 * Copyright: Public Domain
5 * License: Public Domain
7 * Standards: ISO/IEC 9899:1999 (E)
11 private import stdc.stddef;
12 private import stdc.config;
34 const EXIT_SUCCESS = 0;
35 const EXIT_FAILURE = 1;
36 const RAND_MAX = 32767;
39 double atof(in char* nptr);
40 int atoi(in char* nptr);
41 c_long atol(in char* nptr);
42 long atoll(in char* nptr);
44 double strtod(in char* nptr, char** endptr);
45 float strtof(in char* nptr, char** endptr);
46 real strtold(in char* nptr, char** endptr);
47 c_long strtol(in char* nptr, char** endptr, int base);
48 long strtoll(in char* nptr, char** endptr, int base);
49 c_ulong strtoul(in char* nptr, char** endptr, int base);
50 ulong strtoull(in char* nptr, char** endptr, int base);
52 double wcstod(in wchar_t* nptr, wchar_t** endptr);
53 float wcstof(in wchar_t* nptr, wchar_t** endptr);
54 real wcstold(in wchar_t* nptr, wchar_t** endptr);
55 c_long wcstol(in wchar_t* nptr, wchar_t** endptr, int base);
56 long wcstoll(in wchar_t* nptr, wchar_t** endptr, int base);
57 c_ulong wcstoul(in wchar_t* nptr, wchar_t** endptr, int base);
58 ulong wcstoull(in wchar_t* nptr, wchar_t** endptr, int base);
61 void srand(uint seed);
63 void* malloc(size_t size);
64 void* calloc(size_t nmemb, size_t size);
65 void* realloc(void* ptr, size_t size);
69 void exit(int status);
70 int atexit(void function() func);
71 void _Exit(int status);
73 char* getenv(in char* name);
74 int system(in char* string);
76 void* bsearch(in void* key, in void* base, size_t nmemb, size_t size, int function(in void*, in void*) compar);
77 void qsort(void* base, size_t nmemb, size_t size, int function(in void*, in void*) compar);
80 c_long labs(c_long j);
83 div_t div(int numer, int denom);
84 ldiv_t ldiv(c_long numer, c_long denom);
85 lldiv_t lldiv(long numer, long denom);
87 int mblen(in char* s, size_t n);
88 int mbtowc(wchar_t* pwc, in char* s, size_t n);
89 int wctomb(char*s, wchar_t wc);
90 size_t mbstowcs(wchar_t* pwcs, in char* s, size_t n);
91 size_t wcstombs(char* s, in wchar_t* pwcs, size_t n);
93 version( DigitalMars )
95 void* alloca(size_t size);
99 private import gcc.builtins;
100 alias gcc.builtins.__builtin_alloca alloca;