casinhf

Defined in header <complex.h> float complex casinhf( float complex z ); (1) (since C99) double complex casinh( double complex z ); (2) (since C99) long double complex casinhl( long double complex z ); (3) (since C99) Defined in header <tgmath.h> #define asinh( z ) (4) (since C99) 1-3) Computes the complex arc hyperbolic sine of z with branch cuts outside the interval [−i; +i] along the imaginary axis. 4) Type-generic macro: If z h

Algorithms

Defined in header <stdlib.h> qsortqsort_s (C11) sorts a range of elements with unspecified type (function) bsearchbsearch_s (C11) searches an array for an element of unspecified type (function) References C11 standard (ISO/IEC 9899:2011): 7.22.5 Searching and sorting utilities (p: 354-356) K.3.6.3 Searching and sorting utilities (p: 607-609) C99 standard (ISO/IEC 9899:1999): 7.20.5 Searching and sorting utilities (p: 318-319) C89/C90 standard (ISO/IEC 9899:

isupper

Defined in header <ctype.h> int isupper( int ch ); Checks if the given character is an uppercase character according to the current C locale. In the default "C" locale, isupper returns true only for the uppercase letters (ABCDEFGHIJKLMNOPQRSTUVWXYZ). If isupper returns true, it is guaranteed that iscntrl, isdigit, ispunct, and isspace return false for the same character in the same C locale. The behavior is undefined if the value of ch is not representable as unsigned char

SIG_DFL

Defined in header <signal.h> #define SIG_DFL /*implementation defined*/ #define SIG_IGN /*implementation defined*/ The SIG_DFL and SIG_IGN macros expand into integral expressions that are not equal to an address of any function. The macros define signal handling strategies for signal() function. Constant Explanation SIG_DFL default signal handling SIG_IGN signal is ignored Example #include <signal.h> #include <stdio.h> int main(void) {

getchar

Defined in header <stdio.h> int getchar(); Reads the next character from stdin. Equivalent to getc(stdin). Parameters (none). Return value The obtained character on success or EOF on failure. If the failure has been caused by end-of-file condition, additionally sets the eof indicator (see feof()) on stdin. If the failure has been caused by some other error, sets the error indicator (see ferror()) on stdin. Example getchar with error checking. #include <stdio.h&

restrict type qualifier

Each individual type in the C type system has several qualified versions of that type, corresponding to one, two, or all three of the const, volatile, and, for pointers to object types, restrict qualifiers. This page describes the effects of the restrict qualifier. Only pointers to object types may be restrict-qualified (in particular, int restrict *p and float (* restrict f9)(void) are errors). restrict semantics apply to lvalue expressions only; for example, a cast to restrict-qualified point

Lookup and name spaces

When an identifier is encountered in a C program, a lookup is performed to locate the declaration that introduced that identifier and that is currently in scope. C allows more than one declaration for the same identifier to be in scope simultaneously if these identifiers belong to different categories, called name spaces: 1) Label name space: all identifiers declared as labels. 2) Tag names: all identifiers declared as names of structs, unions and enumerated types. Note that all three kinds o

feraiseexcept

Defined in header <<fenv.h>> int feraiseexcept( int excepts ); (since C99) Attempts to raise all floating point exceptions listed in excepts (a bitwise OR of the floating point exception macros). If one of the exceptions is FE_OVERFLOW or FE_UNDERFLOW, this function may additionally raise FE_INEXACT. The order in which the exceptions are raised is unspecified, except that FE_OVERFLOW and FE_UNDERFLOW are always raised before FE_INEXACT. Parameters excepts - bi

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

_Exit

Defined in header <stdlib.h> void _Exit( int exit_code ); (since C99) Causes normal program termination to occur without completely cleaning the resources. Destructors of variables with automatic, thread local and static storage durations are not called. Functions passed to at_quick_exit() or atexit() are not called. Whether open resources such as files are closed is implementation defined. If exit_code is EXIT_FAILURE, an implementation-defined status, indicating unsuccess