Modular C
+ Collaboration diagram for C◼lib:

Modules

 C◼lib◼llong: symbols inserted from C◼llong.
 
 C◼lib◼rand
 
 Platform features used by module C◼lib
 Some features are recovered or pre-computed specifically for the target platform by looking into the C include files:
 
 Specific macros to deal with the structure of module C◼lib.
 

Data Structures

struct  C◼lib◼div_t
 The platform struct div_t. More...
 
struct  C◼lib◼ldiv_t
 The platform struct ldiv_t. More...
 
struct  C◼lib◼lldiv_t
 The platform struct lldiv_t. More...
 
struct  C◼lib◼imaxdiv_t
 The platform struct imaxdiv_t. More...
 

Macros

#define C◼lib◼NULL   C◼NULL
 
#define C◼lib◼abs(X)   _Generic((+X), int: C◼lib◼abs(X), long: C◼lib◼labs(X), long long: C◼lib◼llabs(X), default: (X))
 
#define C◼lib◼div(X, Y)   _Generic((X)+(Y), int: C◼lib◼div, long: C◼lib◼ldiv, long long: C◼lib◼lldiv)((X), (Y))
 
#define C◼lib◼div_t_type_rem   int
 
#define C◼lib◼div_t_type_quot   int
 
#define C◼lib◼ldiv_t_type_rem   long
 
#define C◼lib◼ldiv_t_type_quot   long
 
#define C◼lib◼lldiv_t_type_rem   long long
 
#define C◼lib◼lldiv_t_type_quot   long long
 
#define C◼lib◼imaxdiv_t_type_rem   C◼intmax
 
#define C◼lib◼imaxdiv_t_type_quot   C◼intmax
 

Typedefs

typedef C◼size C◼lib◼size
 
typedef C◼wchar C◼lib◼wchar
 

Functions

double C◼lib◼atof (const char *)
 
int C◼lib◼atoi (char const *)
 
long int C◼lib◼atol (char const *)
 
long long int C◼lib◼atoll (char const *)
 
int C◼lib◼rand (void)
 This aliases symbol rand. More...
 
void * C◼lib◼aligned_alloc (C◼lib◼size, C◼lib◼size)
 
void * C◼lib◼calloc (C◼lib◼size, C◼lib◼size)
 
void C◼lib◼free (void *)
 
void * C◼lib◼malloc (C◼lib◼size)
 
void * C◼lib◼realloc (void *, C◼lib◼size)
 
C◼noreturn void C◼lib◼abort (void)
 This aliases symbol abort. More...
 
int C◼lib◼atexit (void(*)(void))
 
int C◼lib◼at_quick_exit (void(*)(void))
 
C◼noreturn void C◼lib◼exit (int)
 
C◼noreturn void C◼lib◼Exit (int)
 
C◼noreturn void C◼lib◼quick_exit (int)
 
int C◼lib◼system (char const *)
 
void * C◼lib◼bsearch (void const *, const void *, C◼lib◼size, C◼lib◼size, int(*)(void const *, void const *))
 
void C◼lib◼qsort (void *, C◼lib◼size, C◼lib◼size, int(*)(void const *, const void *))
 
int() C◼lib◼abs (int)
 
long int() C◼lib◼labs (long int)
 
long long int() C◼lib◼llabs (long long int)
 
C◼intmax() C◼lib◼imaxabs (C◼intmax)
 
C◼lib◼div_t C◼lib◼div (int, int)
 
C◼lib◼ldiv_t C◼lib◼ldiv (long int, long int)
 
C◼lib◼lldiv_t C◼lib◼lldiv (long long int, long long int)
 
C◼lib◼imaxdiv_t C◼lib◼imaxdiv (C◼intmax, C◼intmax)
 
int C◼lib◼mblen (char const *, C◼lib◼size)
 
int C◼lib◼mbtowc (C◼lib◼wchar *restrict, char const *restrict, C◼lib◼size)
 
int C◼lib◼wctomb (char *, C◼lib◼wchar)
 
C◼lib◼size C◼lib◼mbstowcs (C◼lib◼wchar *restrict, char const *restrict, C◼lib◼size)
 
C◼lib◼size C◼lib◼wcstombs (char *restrict, C◼lib◼wchar const *restrict, C◼lib◼size)
 

Detailed Description


Data Structure Documentation

§ C◼lib◼div_t

struct C◼lib◼div_t

The platform struct div_t.

Known fields: rem quot

Definition at line 131 of file C-lib.c.

+ Collaboration diagram for C◼lib◼div_t:

Data Fields

C◼lib◼div_t_type_quot quot
 
C◼lib◼div_t_type_rem rem
 

Field Documentation

§ quot

Definition at line 132 of file C-lib.c.

§ rem

Definition at line 133 of file C-lib.c.

§ C◼lib◼ldiv_t

struct C◼lib◼ldiv_t

The platform struct ldiv_t.

Known fields: rem quot

Definition at line 169 of file C-lib.c.

+ Collaboration diagram for C◼lib◼ldiv_t:

Data Fields

C◼lib◼ldiv_t_type_quot quot
 
C◼lib◼ldiv_t_type_rem rem
 

Field Documentation

§ quot

Definition at line 170 of file C-lib.c.

§ rem

Definition at line 171 of file C-lib.c.

§ C◼lib◼lldiv_t

struct C◼lib◼lldiv_t

The platform struct lldiv_t.

Known fields: rem quot

Definition at line 207 of file C-lib.c.

+ Collaboration diagram for C◼lib◼lldiv_t:

Data Fields

C◼lib◼lldiv_t_type_quot quot
 
C◼lib◼lldiv_t_type_rem rem
 

Field Documentation

§ quot

Definition at line 208 of file C-lib.c.

§ rem

Definition at line 209 of file C-lib.c.

§ C◼lib◼imaxdiv_t

struct C◼lib◼imaxdiv_t

The platform struct imaxdiv_t.

Known fields: rem quot

Definition at line 245 of file C-lib.c.

+ Collaboration diagram for C◼lib◼imaxdiv_t:

Data Fields

C◼lib◼imaxdiv_t_type_quot quot
 
C◼lib◼imaxdiv_t_type_rem rem
 

Field Documentation

§ quot

Definition at line 246 of file C-lib.c.

§ rem

Definition at line 247 of file C-lib.c.

Macro Definition Documentation

§ C◼lib◼abs

#define C◼lib◼abs (   X)    _Generic((+X), int: C◼lib◼abs(X), long: C◼lib◼labs(X), long long: C◼lib◼llabs(X), default: (X))

Definition at line 534 of file C-lib.c.

§ C◼lib◼div

#define C◼lib◼div (   X,
 
)    _Generic((X)+(Y), int: C◼lib◼div, long: C◼lib◼ldiv, long long: C◼lib◼lldiv)((X), (Y))

Definition at line 539 of file C-lib.c.

§ C◼lib◼div_t_type_quot

#define C◼lib◼div_t_type_quot   int

Definition at line 547 of file C-lib.c.

§ C◼lib◼div_t_type_rem

#define C◼lib◼div_t_type_rem   int

Definition at line 546 of file C-lib.c.

§ C◼lib◼imaxdiv_t_type_quot

#define C◼lib◼imaxdiv_t_type_quot   C◼intmax

Definition at line 571 of file C-lib.c.

§ C◼lib◼imaxdiv_t_type_rem

#define C◼lib◼imaxdiv_t_type_rem   C◼intmax

Definition at line 570 of file C-lib.c.

§ C◼lib◼ldiv_t_type_quot

#define C◼lib◼ldiv_t_type_quot   long

Definition at line 555 of file C-lib.c.

§ C◼lib◼ldiv_t_type_rem

#define C◼lib◼ldiv_t_type_rem   long

Definition at line 554 of file C-lib.c.

§ C◼lib◼lldiv_t_type_quot

#define C◼lib◼lldiv_t_type_quot   long long

Definition at line 563 of file C-lib.c.

§ C◼lib◼lldiv_t_type_rem

#define C◼lib◼lldiv_t_type_rem   long long

Definition at line 562 of file C-lib.c.

§ C◼lib◼NULL

#define C◼lib◼NULL   C◼NULL

Definition at line 506 of file C-lib.c.

Typedef Documentation

§ C◼lib◼size

Definition at line 504 of file C-lib.c.

§ C◼lib◼wchar

Definition at line 505 of file C-lib.c.

Function Documentation

§ C◼lib◼abort()

int C◼lib◼abort ( void  )

This aliases symbol abort.

§ C◼lib◼abs()

int() C◼lib◼abs ( int  )

§ C◼lib◼aligned_alloc()

void* C◼lib◼aligned_alloc ( C◼lib◼size  ,
C◼lib◼size   
)

§ C◼lib◼at_quick_exit()

int C◼lib◼at_quick_exit ( void(*)(void)  )

§ C◼lib◼atexit()

int C◼lib◼atexit ( void(*)(void)  )

§ C◼lib◼atof()

double C◼lib◼atof ( const char *  )

§ C◼lib◼atoi()

int C◼lib◼atoi ( char const *  )

§ C◼lib◼atol()

long int C◼lib◼atol ( char const *  )

§ C◼lib◼atoll()

long long int C◼lib◼atoll ( char const *  )

§ C◼lib◼bsearch()

void* C◼lib◼bsearch ( void const *  ,
const void *  ,
C◼lib◼size  ,
C◼lib◼size  ,
int(*)(void const *, void const *)   
)

§ C◼lib◼calloc()

void* C◼lib◼calloc ( C◼lib◼size  ,
C◼lib◼size   
)

§ C◼lib◼div()

C◼lib◼div_t C◼lib◼div ( int  ,
int   
)

§ C◼lib◼exit()

C◼noreturn void C◼lib◼exit ( int  )

§ C◼lib◼Exit()

C◼noreturn void C◼lib◼Exit ( int  )

§ C◼lib◼free()

§ C◼lib◼imaxabs()

C◼intmax() C◼lib◼imaxabs ( C◼intmax  )

§ C◼lib◼imaxdiv()

C◼lib◼imaxdiv_t C◼lib◼imaxdiv ( C◼intmax  ,
C◼intmax   
)

§ C◼lib◼labs()

long int() C◼lib◼labs ( long  int)

§ C◼lib◼ldiv()

C◼lib◼ldiv_t C◼lib◼ldiv ( long  int,
long  int 
)

§ C◼lib◼llabs()

long long int() C◼lib◼llabs ( long long  int)

§ C◼lib◼lldiv()

C◼lib◼lldiv_t C◼lib◼lldiv ( long long  int,
long long  int 
)

§ C◼lib◼malloc()

§ C◼lib◼mblen()

int C◼lib◼mblen ( char const *  ,
C◼lib◼size   
)

§ C◼lib◼mbstowcs()

C◼lib◼size C◼lib◼mbstowcs ( C◼lib◼wchar restrict,
char const *  restrict,
C◼lib◼size   
)

Referenced by C◼mod◼stats◼print().

+ Here is the caller graph for this function:

§ C◼lib◼mbtowc()

int C◼lib◼mbtowc ( C◼lib◼wchar restrict,
char const *  restrict,
C◼lib◼size   
)

§ C◼lib◼qsort()

§ C◼lib◼quick_exit()

C◼noreturn void C◼lib◼quick_exit ( int  )

§ C◼lib◼rand()

int C◼lib◼rand ( void  )

This aliases symbol rand.

Referenced by C◼lib◼rand◼uniform().

+ Here is the caller graph for this function:

§ C◼lib◼realloc()

void* C◼lib◼realloc ( void *  ,
C◼lib◼size   
)

Referenced by C◼mod◼stats◼print().

+ Here is the caller graph for this function:

§ C◼lib◼system()

int C◼lib◼system ( char const *  )

§ C◼lib◼wcstombs()

C◼lib◼size C◼lib◼wcstombs ( char *  restrict,
C◼lib◼wchar const *  restrict,
C◼lib◼size   
)

§ C◼lib◼wctomb()

int C◼lib◼wctomb ( char *  ,
C◼lib◼wchar   
)