Boolean type support library

The C programming language, as of C99, supports Boolean arithmetic with the built-in type _Bool (see _Bool). When the header <stdbool.h> is included, the Boolean type is also accessible as bool. Standard logical operators &&, ||, ! can be used with the Boolean type in any combination. A program may undefine and perhaps then redefine the macros bool, true and false. Macros Macro name Expands to bool _Bool true integer constant 1 false integer constant 0 __bool_t

cnd_broadcast

Defined in header <threads.h> int cnd_broadcast( cnd_t *cond ); (since C11) Unblocks all thread that currently wait on condition variable pointed to by cond. If no threads are blocked, does nothing and returns thrd_success. Parameters cond - pointer to a condition variable Return value thrd_success if successful, thrd_error otherwise. References C11 standard (ISO/IEC 9899:2011): 7.26.3.1 The cnd_broadcast function (p: 378) See also cnd_signal (C1

fma

Defined in header <math.h> float fmaf( float x, float y, float z ); (1) (since C99) double fma( double x, double y, double z ); (2) (since C99) long double fmal( long double x, long double y, long double z ); (3) (since C99) #define FP_FAST_FMA /* implementation-defined */ (4) (since C99) #define FP_FAST_FMAF /* implementation-defined */ (5) (since C99) #define FP_FAST_FMAL /* implementation-defined */ (6) (since C99) Defined in head

hypot

Defined in header <math.h> float hypotf( float x, float y ); (1) (since C99) double hypot( double x, double y ); (2) (since C99) long double hypotl( long double x, long double y ); (3) (since C99) Defined in header <tgmath.h> #define hypot( x, y ) (4) (since C99) 1-3) Computes the square root of the sum of the squares of x and y, without undue overflow or underflow at intermediate stages of the computation. 4) Type-generic macro:

feclearexcept

Defined in header <<fenv.h>> int feclearexcept( int excepts ); (since C99) Attempts to clear the floating-point exceptions that are listed in the bitmask argument excepts, which is a bitwise OR of the floating point exception macros. Parameters excepts - bitmask listing the exception flags to clear Return value ​0​ if all indicated exceptions were successfully cleared or if excepts is zero. Returns a non-zero value on error. Example #include <fen

tmpfile

Defined in header <stdio.h> FILE *tmpfile(); (1) errno_t tmpfile_s(FILE * restrict * restrict streamptr); (2) (since C11) 1) Creates and opens a temporary file. The file is opened as binary file for update (as if by fopen with "wb+ mode). The filename of the file is guaranteed to be unique within the filesystem. At least TMP_MAX files may be opened during the lifetime of a program (this limit may be shared with tmpnam and may be further limited by FOPEN_MAX). 2) Sam

MATH_ERRNO

Defined in header <math.h> #define MATH_ERRNO 1 (since C99) #define MATH_ERREXCEPT 2 (since C99) #define math_errhandling /*implementation defined*/ (since C99) The macro constant math_errhandling expands to an expression of type int that is either equal to MATH_ERRNO, or equal to MATH_ERREXCEPT, or equal to their bitwise OR (MATH_ERRNO | MATH_ERREXCEPT). The value of math_errhandling indicates the type of error handling that is performed by the float

setbuf

Defined in header <stdio.h> void setbuf( FILE *stream, char *buffer ); (until C99) void setbuf( FILE *restrict stream, char *restrict buffer ); (since C99) Sets the internal buffer to use for stream operations. It should be at least BUFSIZ characters long. If buffer is not null, equivalent to setvbuf(stream, buffer, _IOFBF, BUFSIZ). If buffer is null, equivalent to setvbuf(stream, NULL, _IONBF, 0), which turns off buffering. Parameters stream -

strtol

Defined in header <stdlib.h> long strtol( const char *str, char **str_end, int base ); (until C99) long strtol( const char *restrict str, char **restrict str_end, int base ); (since C99) long long strtoll( const char *restrict str, char **restrict str_end, int base ); (since C99) Interprets an integer value in a byte string pointed to by str. Discards any whitespace characters (as identified by calling isspace()) until the first non-w

gets

Defined in header <stdio.h> char *gets( char *str ); (until C11) char *gets_s( char *str, rsize_t n ); (since C11) (optional) 1) Reads stdin into the character array pointed to by str until a newline character is found or end-of-file occurs. A null character is written immediately after the last character read into the array. The newline character is discarded but not stored in the buffer. 2) Reads characters from stdin until a newline is found or end-of-file occurs