The OpenD Programming Language

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;
Undocumented in source.

Members

Aliases

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

Functions

_Exit
noreturn _Exit(int status)
__mingw_strtold
real __mingw_strtold(inout(char)* nptr, inout(char)** endptr)
_strtoi64
long _strtoi64(inout(char)* , inout(char)** , int )
_strtoui64
ulong _strtoui64(inout(char)* , inout(char)** , int )
_wcstoi64
long _wcstoi64(inout(wchar)* , inout(wchar)** , int )
_wcstoui64
ulong _wcstoui64(inout(wchar)* , inout(wchar)** , int )
abort
noreturn abort()
abs
int abs(int j)
aligned_alloc
void* aligned_alloc(size_t alignment, size_t size)

since C11

alloca
void* alloca(size_t size)
atexit
int atexit(void function() func)
atof
double atof(char* nptr)
atoi
int atoi(char* nptr)
atol
c_long atol(char* nptr)
atoll
long atoll(char* nptr)
bsearch
inout(void)* bsearch(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
noreturn exit(int status)
free
void free(void* ptr)
getenv
char* getenv(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(char* s, size_t n)
mbstowcs
size_t mbstowcs(wchar_t* pwcs, char* s, size_t n)
mbtowc
int mbtowc(wchar_t* pwc, 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(inout(char)* nptr, inout(char)** endptr)
strtof
float strtof(inout(char)* nptr, inout(char)** endptr)
strtol
c_long strtol(inout(char)* nptr, inout(char)** endptr, int base)
strtold
real strtold(inout(char)* nptr, inout(char)** endptr)
strtold
real strtold(inout(char)* nptr, inout(char)** endptr)

Added to Bionic since Lollipop.

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

Manifest constants

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

Structs

div_t
struct div_t
ldiv_t
struct ldiv_t
lldiv_t
struct lldiv_t

Meta

License

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

Standards

ISO/IEC 9899:1999 (E)

Authors

Sean Kelly