core.stdc.stdlib

D header file for C99.

This module contains bindings to selected types and functions from the standard C header <_stdlib.h>. Note that this is not automatically generated, and may omit some types/functions from the original C header.

Public Imports

core.stdc.stddef
public import core.stdc.stddef;

Members

Aliases

_compare_fp_t
alias _compare_fp_t = int function(const void*, const void*)
strtold
alias strtold = __mingw_strtold

Functions

_Exit
void _Exit(int status)
__mingw_strtold
real __mingw_strtold(scope inout(char)* nptr, scope inout(char)** endptr)
_strtoi64
long _strtoi64(scope inout(char)*, scope inout(char)**, int)
_strtoui64
ulong _strtoui64(scope inout(char)*, scope inout(char)**, int)
_wcstoi64
long _wcstoi64(scope inout(wchar)*, scope inout(wchar)**, int)
_wcstoui64
ulong _wcstoui64(scope inout(wchar)*, scope inout(wchar)**, int)
abort
void abort()
abs
int abs(int j)
alloca
void* alloca(size_t size)
atexit
int atexit(void function() func)
atof
double atof(scope const char* nptr)
atoi
int atoi(scope const char* nptr)
atol
c_long atol(scope const char* nptr)
atoll
long atoll(scope const char* nptr)
bsearch
inout(void)* bsearch(const void* key, inout(void)* base, size_t nmemb, size_t size, _compare_fp_t compar)
calloc
void* calloc(size_t nmemb, size_t size)
div
div_t div(int numer, int denom)
exit
void exit(int status)
free
void free(void* ptr)
getenv
char* getenv(scope const char* name)
labs
c_long labs(c_long j)
ldiv
ldiv_t ldiv(c_long numer, c_long denom)
llabs
long llabs(long j)
lldiv
lldiv_t lldiv(long numer, long denom)
malloc
void* malloc(size_t size)
mblen
int mblen(scope const char* s, size_t n)
mbstowcs
size_t mbstowcs(scope wchar_t* pwcs, scope const char* s, size_t n)
mbtowc
int mbtowc(scope wchar_t* pwc, scope const char* s, size_t n)
qsort
void qsort(void* base, size_t nmemb, size_t size, _compare_fp_t compar)
rand
int rand()

These two were added to Bionic in Lollipop.

realloc
void* realloc(void* ptr, size_t size)
srand
void srand(uint seed)
strtod
double strtod(scope inout(char)* nptr, scope inout(char)** endptr)
strtof
float strtof(scope inout(char)* nptr, scope inout(char)** endptr)
strtol
c_long strtol(scope inout(char)* nptr, scope inout(char)** endptr, int base)
strtold
real strtold(scope inout(char)* nptr, inout(char)** endptr)
strtold
real strtold(scope inout(char)* nptr, scope inout(char)** endptr)

Added to Bionic since Lollipop.

strtoll
long strtoll(scope inout(char)* nptr, scope inout(char)** endptr, int base)
strtoul
c_ulong strtoul(scope inout(char)* nptr, scope inout(char)** endptr, int base)
strtoull
ulong strtoull(scope inout(char)* nptr, scope inout(char)** endptr, int base)
system
int system(scope const char* string)
wcstombs
size_t wcstombs(scope char* s, scope const wchar_t* pwcs, size_t n)
wctomb
int wctomb(scope char* s, wchar_t wc)

Manifest constants

EXIT_FAILURE
enum EXIT_FAILURE;
EXIT_SUCCESS
enum EXIT_SUCCESS;
MB_CUR_MAX
enum MB_CUR_MAX;
RAND_MAX
enum RAND_MAX;

Structs

div_t
struct div_t
ldiv_t
struct ldiv_t
lldiv_t
struct lldiv_t

Meta

Standards

ISO/IEC 9899:1999 (E)

License

Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)

Authors

Sean Kelly

Suggestion Box / Bug Report