wcscoll

Defined in header <wchar.h> int wcscoll( const wchar_t *lhs, const wchar_t *rhs ); (since C95) Compares two null-terminated wide strings according to the collation order defined by the LC_COLLATE category of the currently installed locale. Parameters lhs, rhs - pointers to the null-terminated wide strings to compare Return value Negative value if lhs is less than (precedes) rhs. ​0​ if lhs is equal to rhs. Positive value if lhs is greater than (follows) rhs.

#pragma directive

Implementation defined behavior is controlled by #pragma directive. Syntax #pragma pragma_params (1) _Pragma ( string-literal ) (2) (since C99) 1) Behaves in an implementation-defined manner (unless pragma_params is one of the standard pragmas shown below. 2) Removes the encoding prefix (if any), the outer quotes, and leading/trailing whitespace from string-literal, replaces each \" with " and each \\ with \, then tokenizes the result (as in translation stage 3), and then use

mbrtoc16

Defined in header <uchar.h> size_t mbrtoc16( char16_t* pc16, const char* s, size_t n, mbstate_t* ps ); (since C11) Converts a narrow multibyte character to 16-bit character representation (typically, UTF-16). If s is not a null pointer, inspects at most n bytes of the multibyte character string, beginning with the byte pointed to by s to determine the number of bytes necessary to complete the next multibyte character (including any shift sequences). If the function determin

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

iswblank

Defined in header <wctype.h> int iswblank( wint_t ch ); (since C99) Checks if the given wide character is classified as blank character (that is, a whitespace character used to separate words in a sentence) by the current C locale. In the default C locale, only space (0x20) and horizontal tab (0x09) are blank characters. Parameters ch - wide character Return value Non-zero value if the wide character is a blank character, zero otherwise. Example #include

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

feholdexcept

Defined in header <<fenv.h>> int feholdexcept( fenv_t* envp ); (since C99) First, saves the current floating-point environment to the object pointed to by envp (similar to fegetenv), then clears all floating-point status flags, and then installs the non-stop mode: future floating-point exceptions will not interrupt execution (will not trap), until the floating-point environment is restored by feupdateenv or fesetenv. This function may be used in the beginning of a sub

goto statement

Transfers control unconditionally to the desired location. Used when it is otherwise impossible to transfer control to the desired location using conventional constructs. Syntax goto label ; label : statement Explanation The goto statement causes an unconditional jump (transfer of control) to the statement prefixed by the named label (which must appear in the same function as the goto statement), except when this jump would enter the scope of a variable-length array or anoth

isnan

Defined in header <math.h> #define isnan(arg) /* implementation defined */ (since C99) Determines if the given floating point number arg is a not-a-number (NaN) value. The macro returns an integral value. FLT_EVAL_METHOD is ignored: even if the argument is evaluated with more range and precision than its type, it is first converted to its semantic type, and the classification is based on that (this matters if the evaluation type supports NaNs, while the semantic type does n

wcscpy

Defined in header <wchar.h> (1) wchar_t *wcscpy( wchar_t *dest, const wchar_t *src ); (since C95) (until C99) wchar_t *wcscpy( wchar_t *restrict dest, const wchar_t *restrict src ); (since C99) errno_t wcscpy_s( wchar_t *restrict dest, rsize_t destsz, const wchar_t *restrict src ); (2) (since C11) 1) Copies the wide string pointed to by src (including the terminating null wide character) to wide character array pointed to by dest. The behavior