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

wcschr

Defined in header <wchar.h> wchar_t* strchr( const wchar_t* str, wchar_t ch ); (since C95) Finds the first occurrence of the wide character ch in the wide string pointed to by str. Parameters str - pointer to the null-terminated wide string to be analyzed ch - wide character to search for Return value Pointer to the found character in str, or NULL if no such character is found. Example References C11 standard (ISO/IEC 9899:2011): 7.29.4.5.1 The w

thrd_current

Defined in header <threads.h> thrd_t thrd_current(); (since C11) Returns the identifier of the calling thread. Parameters (none). Return value The identifier of the calling thread. References C11 standard (ISO/IEC 9899:2011): 7.26.5.2 The thrd_current function (p: 383)

isgreaterequal

Defined in header <math.h> #define isgreaterequal(x, y) /* implementation defined */ (since C99) Determines if the floating point number x is greater than or equal to the floating-point number y, without setting floating-point exceptions. Parameters x - floating point value y - floating point value Return value Nonzero integral value if x >= y, ​0​ otherwise. Notes The built-in operator>= for floating-point numbers may raise FE_INVALID if one or

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

quick_exit

Defined in header <stdlib.h> void quick_exit( int exit_code ); (since C11) Causes normal program termination to occur without completely cleaning the resources. Functions passed to at_quick_exit are called in reverse order of their registration. After calling the registered functions, calls _Exit(exit_code). Parameters exit_code - exit status of the program Return value (none). Example #include <stdlib.h> #include <stdio.h> void f1() { p

isgreater

Defined in header <math.h> #define isgreater(x, y) /* implementation defined */ (since C99) Determines if the floating point number x is greater than the floating-point number (y), without setting floating-point exceptions. Parameters x - floating point value y - floating point value Return value Nonzero integral value if x > y, ​0​ otherwise. Notes The built-in operator> for floating-point numbers may set FE_INVALID if one or both of the argume

isnormal

Defined in header <math.h> #define isnormal(arg) /* implementation defined */ (since C99) Determines if the given floating point number arg is normal, i.e. is neither zero, subnormal, infinite, nor 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 - floating point value

Functions

A function is a C language construct that associates a compound statement (the function body) with an identifier (the function name). Every C program begins execution from the main function, which either terminates, or invokes other, user-defined or library functions. // function definition. // defines a function with the name "sum" and with the body "{ return x+y; }" int sum(int x, int y) { return x + y; } Functions may accept zero or more parameters, which are initialized from the argume

while loop

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