const

Usage const type qualifier

acosh

Defined in header <math.h> float acoshf( float arg ); (1) (since C99) double acosh( double arg ); (2) (since C99) long double acoshl( long double arg ); (3) (since C99) Defined in header <tgmath.h> #define acosh( arg ) (4) (since C99) 1-3) Computes the inverse hyperbolic cosine of arg. 4) Type-generic macro: If the argument has type long double, acoshl is called. Otherwise, if the argument has integer type or the type double, acos

printf

Defined in header <stdio.h> (1) ​int printf( const char *format, ... );​ (until C99) ​int printf( const char *restrict format, ... );​ (since C99) (2) int fprintf( FILE *stream, const char *format, ... ); (until C99) int fprintf( FILE *restrict stream, const char *restrict format, ... ); (since C99) (3) int sprintf( char *buffer, const char *format, ... ); (until C99) int sprintf( char *restrict buffer, const char *restrict format, ... ); (since C

Struct and union initialization

When initializing an object of struct or union type, the initializer must be a non-empty, brace-enclosed, comma-separated list of initializers for the members: = { designator(optional) expression , ... } where the designator is a sequence (whitespace-separated or adjacent) of individual member designators of the form . member and array designators of the form [ index ]. All members that are not initialized explicitly are initialized implicitly the same way as objects that have static

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

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,

vwprintf

Defined in header <wchar.h> int vwprintf( const wchar_t* format, va_list vlist ); (1) (since C95) int vfwprintf( FILE* stream, const wchar_t* format, va_list vlist ); (2) (since C95) int vswprintf( const wchar_t* buffer, size_t bufsz, const wchar_t* format, va_list vlist ); (3) (since C95) int vwprintf_s( const wchar_t * restrict format, va_list vlist); (4) (since C11) int vfwprintf_s( FILE * restrict stream, const wchar_t *r

feof

Defined in header <stdio.h> int feof( FILE *stream ); Checks if the end of the given file stream has been reached. Parameters stream - the file stream to check Return value nonzero value if the end of the stream has been reached, otherwise ​0​ Notes This function only reports the stream state as reported by the most recent I/O operation, it does not examine the associated data source. For example, if the most recent I/O was a fgetc, which returned the last

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

Error handling

Error numbers Defined in header <errno.h> errno macro which expands to POSIX-compatible thread-local error number variable(macro variable) E2BIG, EACCES, ..., EXDEV macros for standard POSIX-compatible error conditions (macro constant) Assertions Defined in header <assert.h> assert aborts the program if the user-specified condition is not true. May be disabled for release builds (function macro) static_assert (C11) issues a compile-time diagnostic