fflush

Defined in header <stdio.h> int fflush( FILE *stream ); For output streams (and for update streams on which the last operation was output), writes any unwritten data from the stream's buffer to the associated output device. For input streams (and for update streams on which the last operation was input), the behavior is undefined. If stream is a null pointer, all open output streams are flushed, including the ones manipulated within library packages or otherwise not directl

thrd_success

Defined in header <threads.h> enum { thrd_success = /* unspecified */, thrd_nomem = /* unspecified */, thrd_timedout = /* unspecified */, thrd_busy = /* unspecified */, thrd_error = /* unspecified */ }; (since C11) Identifiers a thread error state. Constant Explanation thrd_success indicates successful return value thrd_timedout indicates timed out return value thrd_busy indicates unsuccessful return value due to resource temporary unavail

Phases of translation

The C source file is processed by the compiler as if the following phases take place, in this exact order. Actual implementation may combine these actions or process them differently as long as the behavior is the same. Phase 1 1) The individual bytes of the source code file (which is generally a text file in some multibyte encoding such as UTF-8) are mapped, in implementation defined manner, to the characters of the source character set. In particular, OS-dependent end-of-line indicators a

timespec

Defined in header <time.h> struct timespec; (since C11) Structure holding an interval broken down into seconds and nanoseconds. Member objects time_t tv_sec whole seconds – >= 0 long tv_nsec nanoseconds – [0, 999999999] References C11 standard (ISO/IEC 9899:2011): 7.27.1/3 Components of time (p: 388) See also timespec_get (since C11) returns the calendar time based on a given time base (function) tm calendar time type (struct)

iswspace

Defined in header <wctype.h> int iswspace( wint_t ch ); (since C95) Checks if the given wide character is a whitespace character, i.e. either space (0x20), form feed (0x0c), line feed (0x0a), carriage return (0x0d), horizontal tab (0x09), vertical tab (0x0b) or any whitespace character specific to the current locale. Parameters ch - wide character Return value Non-zero value if the wide character is a whitespace character, zero otherwise. Example #include

wcsncmp

Defined in header <wchar.h> int wcsncmp( const wchar_t* lhs, const wchar_t* rhs, size_t count ); (since C95) Compares at most count wide characters of two null-terminated wide strings. The comparison is done lexicographically. Parameters lhs, rhs - pointers to the null-terminated wide strings to compare count - maximum number of characters to compare Return value Negative value if lhs is less than rhs. ​0​ if lhs is equal to rhs. Positive value if lhs is

fmin

Defined in header <math.h> float fminf( float x, float y ); (1) (since C99) double fmin( double x, double y ); (2) (since C99) long double fminl( long double x, long double y ); (3) (since C99) Defined in header <tgmath.h> #define fmin( x, y ) (4) (since C99) 1-3) Returns the smaller of two floating point arguments, treating NaNs as missing data (between a NaN and a numeric value, the numeric value is chosen). 4) Type-generic macr

const

Usage const type qualifier

putchar

Defined in header <stdio.h> int putchar( int ch ); Writes a character ch to stdout. Internally, the character is converted to unsigned char just before being written. Equivalent to putc(ch, stdout). Parameters ch - character to be written Return value On success, returns the written character. On failure, returns EOF and sets the error indicator (see ferror()) on stdout. Example putchar with error checking. #include <stdio.h> #include <stdlib.h>

thrd_join

Defined in header <threads.h> int thrd_join( thrd_t thr, int *res ); (since C11) Blocks the current thread until the thread identified by thr finishes execution. If res is not a null pointer, the result code of the thread is put to the location pointed to by res. The termination of the thread synchronizes-with the completion of this function. The behavior is undefined if the thread was previously detached or joined by another thread. Parameters thr - identifier of t