c16rtomb

Defined in header <uchar.h> size_t c16rtomb( char* s, char16_t c16, mbstate_t* ps ); (since C11) Converts a 16-bit wide character to narrow multibyte character. If s is not a null pointer, the function determines the number of bytes necessary to store the multibyte character representation of c16 (including any shift sequences), and stores the multibyte character representation in the character array whose first element is pointed to by s. At most MB_CUR_MAX bytes can be wr

sin

Defined in header <math.h> float sinf( float arg ); (1) (since C99) double sin( double arg ); (2) long double sinl( long double arg ); (3) (since C99) Defined in header <tgmath.h> #define sin( arg ) (4) (since C99) 1-3) Computes the sine of arg (measured in radians). 4) Type-generic macro: If the argument has type long double, sinl is called. Otherwise, if the argument has integer type or the type double, sin is called. Otherwise,

srand

Defined in header <stdlib.h> void srand( unsigned seed ); Seeds the pseudo-random number generator used by rand() with the value seed. If rand() is used before any calls to srand(), rand() behaves as if it was seeded with srand(1). Each time rand() is seeded with srand(), it must produce the same sequence of values. srand() is not guaranteed to be thread-safe. Parameters seed - the seed value Return value (none). Notes Generally speaking, the pseudo-random

wcsncpy

Defined in header <wchar.h> (1) wchar_t* wcsncpy( wchar_t* dest, const wchar_t* src, size_t count ); (since C95) (until C99) wchar_t *wcsncpy(wchar_t *restrict dest, const wchar_t *restrict src, size_t n); (since C99) errno_t wcsncpy_s( wchar_t *restrict dest, rsize_t destsz, const wchar_t *restrict src, rsize_t n); (2) (since C11) 1) Copies at most count characters of the wide string pointed to by src (including the terminating null wide cha

strftime

Defined in header <time.h> size_t strftime( char * str, size_t count, const char * format, const struct tm * time ); (until C99) size_t strftime( char *restrict str, size_t count, const char *restrict format, const struct tm *restrict time ); (since C99) Converts the date and time information from a given calendar time time to a null-terminated multibyte character string str according to format string format.

longjmp

Defined in header <setjmp.h> void longjmp( jmp_buf env, int status ); (until C11) _Noreturn void longjmp( jmp_buf env, int status ); (since C11) Loads the execution context env saved by a previous call to setjmp. This function does not return. Control is transferred to the call site of the macro setjmp that set up env. That setjmp then returns the value, passed as the status. If the function that called setjmp has exited (whether by return or by a different longjmp hi

typedef

Usage typedef declaration

abs

Defined in header <stdlib.h> int abs( int n ); long labs( long n ); long long llabs( long long n ); (since C99) Defined in header <inttypes.h> intmax_t imaxabs( intmax_t n ); (since C99) Computes the absolute value of an integer number. The behavior is undefined if the result cannot be represented by the return type. Parameters n - integer value Return value The absolute value of n (i.e. |n|), if it is representable.

Array declaration

Array is a type consisting of a contiguously allocated nonempty sequence of objects with a particular element type. The number of those objects (the array size) never changes during the array lifetime. Syntax In the declaration grammar of an array declaration, the type-specifier sequence designates the element type (which must be a complete object type), and the declarator has the form: [ static(optional) qualifiers(optional) expression(optional) ] (1) [ qualifiers(optional) static(op

fortran

Usage conditionally-supported type specifier for Fortran language linkage. May be used with function declarations and other external declarations to indicate that the calling convention and name mangling is suitable for linking with translation units written in the Fortran programming language.