Standard C++ Library Reference ISO/IEC (VERSION3)

labs
long labs(long i);
The function returns the absolute value of i, |i|, the same as abs.
ldiv
ldiv_t ldiv(long numer, long denom);
The function divides numer by denom and returns both quotient and remainder in the structure
result x, if the quotient can be represented. The structure member x.quot is the algebraic
quotient truncated toward zero. The structure member x.rem is the remainder, such that
numer == x.quot*denom + x.rem.
ldiv_t
typedef struct {
long quot, rem;
} ldiv_t;
The type is the structure type returned by the function ldiv. The structure contains members
that represent the quotient (quot) and remainder (rem) of a signed integer division with
operands of type long. The members shown above can occur in either order.
malloc
void *malloc(size_t size);
The function allocates an object of size size, and returns the address of the object if
successful; otherwise, it returns a null pointer. The values stored in the object are indeterminate.
You can safely convert the return value to an object pointer of any type whose size is not
greater than size.
MB_CUR_MAX
#define MB_CUR_MAX <rvalue integer expression >= 1>
The macro yields the maximum number of characters that constitute a multibyte character in the
current locale. Its value is <= MB_LEN_MAX.