logb

Defined in header <math.h> float logbf( float arg ); (1) (since C99) double logb( double arg ); (2) (since C99) long double logbl( long double arg ); (3) (since C99) Defined in header <tgmath.h> #define logb( arg ) (4) (since C99) 1-3) Extracts the value of the unbiased radix-independent exponent from the floating-point argument arg, and returns it as a floating-point value. 4) Type-generic macros: If arg has type long double, lo

log2

Defined in header <math.h> float log2f( float arg ); (1) (since C99) double log2( double arg ); (2) (since C99) long double log2l( long double arg ); (3) (since C99) Defined in header <tgmath.h> #define log2( arg ) (4) (since C99) 1-3) Computes the base 2 logarithm of arg. 4) Type-generic macro: If arg has type long double, log2l is called. Otherwise, if arg has integer type or the type double, log2 is called. Otherwise, log2f is

log1p

Defined in header <math.h> float log1pf( float arg ); (1) (since C99) double log1p( double arg ); (2) (since C99) long double log1pl( long double arg ); (3) (since C99) Defined in header <tgmath.h> #define log1p( arg ) (4) (since C99) 1-3) Computes the natural (base e) logarithm of 1+arg. This function is more precise than the expression log(1+arg) if arg is close to zero. 4) Type-generic macro: If arg has type long double, log1pl

log10

Defined in header <math.h> float log10f( float arg ); (1) (since C99) double log10( double arg ); (2) long double log10l( long double arg ); (3) (since C99) Defined in header <tgmath.h> #define log10( arg ) (4) (since C99) 1-3) Computes the common (base-10) logarithm of arg. 4) Type-generic macro: If arg has type long double, log10l is called. Otherwise, if arg has integer type or the type double, log10 is called. Otherwise, log10

log

Defined in header <math.h> float logf( float arg ); (1) (since C99) double log( double arg ); (2) long double logl( long double arg ); (3) (since C99) Defined in header <tgmath.h> #define log( arg ) (4) (since C99) 1-3) Computes the natural (base e) logarithm of arg. 4) Type-generic macro: If arg has type long double, logl is called. Otherwise, if arg has integer type or the type double, log is called. Otherwise, logf is called. I

localtime

Defined in header <time.h> struct tm *localtime( const time_t *time ); (1) struct tm *localtime_s(const time_t *restrict time, struct tm *restrict result); (2) (since C11) 1) Converts given time since epoch (a time_t value pointed to by time) into calendar time, expressed in local time, in the struct tm format. The result is stored in static storage and a pointer to that static storage is returned. 2) Same as (1), except that the function uses user-provided storage

Localization support

Defined in header <locale.h> setlocale gets and sets the current C locale (function) localeconv queries numeric and monetary formatting details of the current locale (function) lconv formatting details, returned by localeconv (struct) Locale categories LC_ALLLC_COLLATELC_CTYPELC_MONETARYLC_NUMERICLC_TIME locale categories for setlocale (macro constant) References C11 standard (ISO/IEC 9899:2011): 7.11 Localization <locale.h> (p: 223-230) 7.31.6

localeconv

Defined in header <locale.h> lconv* localeconv(); The localeconv function obtains a pointer to a static object of type lconv, which represents numeric and monetary formatting rules of the current C locale. Parameters (none). Return value pointer to the current lconv object. Notes Modifying the object references through the returned pointer is undefined behavior. localeconv modifies a static object, calling it from different threads without synchronization is undefi

Lifetime

Every object in C exists, has a constant address, retains its last-stored value (except when the value is indeterminate), and, for VLA, retains its size (since C99) over a portion of program execution known as this object's lifetime. For the objects that are declared with automatic, static, and thread storage duration, lifetime equals their storage duration (note the difference between non-VLA and VLA automatic storage duration). For the objects with allocated storage duration, the lifetime beg

lgamma

Defined in header <math.h> float lgammaf( float arg ); (1) (since C99) double lgamma( double arg ); (2) (since C99) long double lgammal( long double arg ); (3) (since C99) Defined in header <tgmath.h> #define lgamma( arg ) (4) (since C99) 1-3) Computes the natural logarithm of the absolute value of the gamma function of arg. 4) Type-generic macro: If arg has type long double, lgammal is called. Otherwise, if arg has integer type o