atomic_fetch_xor

Defined in header <stdatomic.h> C atomic_fetch_xor( volatile A* obj, M arg ); (1) (since C11) C atomic_fetch_xor_explicit( volatile A* obj, M arg, memory_order order ); (2) (since C11) Atomically replaces the value pointed by obj with the result of bitwise XOR between the old value of obj and arg, and returns the value obj held previously. The operation is read-modify-write operation. The first version orders memory accesses according to memory_order_seq_cst, the seco

strpbrk

Defined in header <string.h> char* strpbrk( const char* dest, const char* breakset ); Scans the null-terminated byte string pointed to by dest for any character from the null-terminated byte string pointed to by breakset, and returns a pointer to that character. The behavior is undefined if either dest or breakset is not a pointer to a null-terminated byte string. Parameters dest - pointer to the null-terminated byte string to be analyzed breakset - pointer to

CMPLXF

Defined in header <complex.h> float complex CMPLXF( float real, float imag ); (since C11) double complex CMPLX( double real, double imag ); (since C11) long double complex CMPLXL( long double real, long double imag ); (since C11) Each of these macros expands to an expression that evaluates to the value of the specified complex type, with the real part having the value of real (converted to the specified argument type) and the imaginary part having the

_Complex_I

Defined in header <complex.h> #define _Complex_I /* unspecified */ (since C99) The _Complex_I macro expands to a value of type const float _Complex with the value of the imaginary unit. Notes This macro may be used when I is not available, such as when it has been undefined by the application. Unlike _Imaginary_I and CMPLX, use of this macro to construct a complex number may lose the sign of zero on the imaginary component. Example #include <stdio.h> #include

#include directive

Includes another source file into the current source file at the line immediately after the directive. Syntax #include <filename> (1) #include "filename" (2) Explanation Includes source file, identified by filename, into the current source file at the line immediately after the directive. The first version of the directive searches only standard include directories. The standard C++ library, as well as standard C library, is implicitly included in standard include dire

wcspbrk

Defined in header <wchar.h> wchar_t* wcspbrk( const wchar_t* dest, const wchar_t* str ); (since C95) Finds the first character in wide string pointed to by dest, that is also in wide string pointed to by str. Parameters dest - pointer to the null-terminated wide string to be analyzed src - pointer to the null-terminated wide string that contains the characters to search for Return value Pointer to the first character in dest, that is also in str, or NULL

isfinite

Defined in header <math.h> #define isfinite(arg) /* implementation defined */ (since C99) Determines if the given floating point number arg has finite value i.e. it is normal, subnormal or zero, but not infinite or NaN. 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. Parameters arg - floa

mbstowcs

Defined in header <stdlib.h> (1) size_t mbstowcs( wchar_t *dst, const char *src, size_t len) (until C99) size_t mbstowcs( wchar_t *restrict dst, const char *restrict src, size_t len) (since C99) errno_t mbstowcs_s(size_t *restrict retval, wchar_t *restrict dst, rsize_t dstsz, const char *restrict src, rsize_t len); (2) (since C11) 1) Converts a multibyte character string from the array whose first element is pointed to by src

do-while loop

Executes a statement repeatedly until the value of condition becomes false. The test takes place after each iteration. Syntax do statement while ( expression ) ; expression - any expression of scalar type. This expression is evaluated after each iteration, and if it compares equal to zero, the loop is exited. statement - any statement, typically a compound statement, which is the body of the loop Explanation A do-while statement causes the statement (also called the

mbsinit

Defined in header <wchar.h> int mbsinit( const mbstate_t* ps); (since C95) If ps is not a null pointer, the mbsinit function determines whether the pointed-to mbstate_t object describes the initial conversion state. Notes Although a zero-initialized mbstate_t always represents the initial conversion state, there may be other values of mbstate_t that also represent the initial conversion state. Parameters ps - pointer to the mbstate_t object to examine Return