View source code
Display the source code in core/stdc/stdlib.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Module 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.

Standards

ISO/IEC 9899:1999 (E)

Functions

NameDescription
abort()
abs(j)
alloca(size)
atexit(func)
atof(nptr)
atoi(nptr)
atol(nptr)
atoll(nptr)
bsearch(key, base, nmemb, size, compar)
calloc(nmemb, size)
div(numer, denom)
exit(status)
free(ptr)
getenv(name)
labs(j)
ldiv(numer, denom)
llabs(j)
lldiv(numer, denom)
malloc(size)
mblen(s, n)
mbstowcs(pwcs, s, n)
mbtowc(pwc, s, n)
qsort(base, nmemb, size, compar)
rand() These two were added to Bionic in Lollipop.
realloc(ptr, size)
srand(seed)
strtod(nptr, endptr)
strtof(nptr, endptr)
strtol(nptr, endptr, base)
strtold(nptr, endptr)
strtoll(nptr, endptr, base)
strtoul(nptr, endptr, base)
strtoull(nptr, endptr, base)
system(string)
wcstombs(s, pwcs, n)
wctomb(s, wc)
_Exit(status)
_strtoi64(, , )
_strtoui64(, , )
_wcstoi64(, , )
_wcstoui64(, , )

Structs

NameDescription
div_t
ldiv_t
lldiv_t

Manifest constants

NameTypeDescription
EXIT_FAILURE
EXIT_SUCCESS
MB_CUR_MAX
RAND_MAX

Aliases

NameTypeDescription
strtold __mingw_strtold
_compare_fp_t extern(C) int function(const(void*), const(void*))

Authors

Sean Kelly

License

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