Common mathematical functions

Functions Defined in header <stdlib.h> abslabsllabs (C99) computes absolute value of an integral value (|x|) (function) divldivlldiv (C99) computes quotient and remainder of integer division (function) Defined in header <inttypes.h> imaxabs (C99) computes absolute value of an integral value (|x|) (function) imaxdiv (C99) computes quotient and remainder of integer division (function) Defined in header <math.h> Basic operations fa

wcstok

Defined in header <wchar.h> (1) wchar_t* wcstok( wchar_t* str, const wchar_t* delim, wchar_t **ptr ); (since C95) (until C99) wchar_t *wcstok(wchar_t * restrict str, const wchar_t * restrict delim, wchar_t **restrict ptr); (since C99) wchar_t *wcstok_s( wchar_t *restrict str, rsize_t *restrict strmax, const wchar_t *restrict delim, wchar_t **restrict ptr); (2) (since C11) 1) Finds the next token in a null-terminated wide strin

Fixed width integer types

Types Defined in header <stdint.h> int8_tint16_tint32_tint64_t signed integer type with width of exactly 8, 16, 32 and 64 bits respectivelywith no padding bits and using 2's complement for negative values(provided only if the implementation directly supports the type) int_fast8_tint_fast16_tint_fast32_tint_fast64_t fastest signed integer type with width of at least 8, 16, 32 and 64 bits respectively int_least8_tint_least16_tint_least32_tint_least64_t smallest signed integ

wcstombs

Defined in header <stdlib.h> (1) size_t wcstombs( char *dst, const wchar_t *src, size_t len ); (until C99) size_t wcstombs( char *restrict dst, const wchar_t *restrict src, size_t len ); (since C99) errno_t wcstombs_s( size_t *restrict retval, char *restrict dst, rsize_t dstsz, const wchar_t *restrict src, rsize_t len ); (2) (since C11) 1) Converts a sequence of wide characters from the array whose first element is pointed

wcstof

Defined in header <wchar.h> float wcstof( const wchar_t* str, wchar_t** str_end ); (since C99) double wcstod( const wchar_t* str, wchar_t** str_end ); (since C95) long double wcstold( const wchar_t* str, wchar_t** str_end ); (since C99) Interprets a floating point value in a wide string pointed to by str. Function discards any whitespace characters (as determined by std::isspace()) until first non-whitespace character is found. Then it takes as many c

atomic_compare_exchange_weak

Defined in header <stdatomic.h> _Bool atomic_compare_exchange_strong( volatile A* obj, C* expected, C desired ); (1) (since C11) _Bool atomic_compare_exchange_weak( volatile A *obj, C* expected, C desired ); (2) (since C11) _Bool atomic_compare_exchange_strong_explicit( volatile A* obj, C* expected, C desired,

tolower

Defined in header <ctype.h> int tolower( int ch ); Converts the given character to lowercase according to the character conversion rules defined by the currently installed C locale. In the default "C" locale, the following uppercase letters ABCDEFGHIJKLMNOPQRSTUVWXYZ are replaced with respective lowercase letters abcdefghijklmnopqrstuvwxyz. Parameters ch - character to be converted. If the value of ch is not representable as unsigned char and does not equal EOF, the

continue

Usage continue statement: as the declaration of the statement

mblen

Defined in header <stdlib.h> int mblen( const char* s, size_t n ); Determines the size, in bytes, of the multibyte character whose first byte is pointed to by s. If s is a null pointer, resets the global conversion state and determined whether shift sequences are used. This function is equivalent to the call mbtowc((wchar_t*)0, s, n), except that conversion state of mbtowc is unaffected. Notes Each call to mblen updates the internal global conversion state (a static obje

time

Defined in header <time.h> time_t time( time_t *arg ); Returns the current calendar time encoded as a time_t object, and also stores it in the time_t object pointed to by arg (unless arg is a null pointer). Parameters arg - pointer to a time_t object where the time will be stored, or a null pointer Return value Current calendar time encoded as time_t object on success, (time_t)(-1) on error. If arg is not a null pointer, the return value is also stored in the