for

Usage for loop: as the declaration of the loop

wctob

Defined in header <wchar.h> int wctob( wint_t c ); (since C95) Narrows a wide character c if its multibyte character equivalent in the initial shift state is a single byte. This is typically possible for the characters from the ASCII character set, since most multibyte encodings (such as UTF-8) use single bytes to encode those characters. Parameters c - wide character to narrow Return value EOF if c does not represent a multibyte character with length 1 in ini

cpowf

Defined in header <complex.h> float complex cpowf( float complex x, float complex y ); (1) (since C99) double complex cpow( double complex x, double complex y ); (2) (since C99) long double complex cpowl( long double complex x, long double complex y ); (3) (since C99) Defined in header <tgmath.h> #define pow( x, y ) (4) (since C99) 1-3) Computes the complex power function xy, with branch cut for the first parameter along the negati

EXIT_SUCCESS

Defined in header <stdlib.h> #define EXIT_SUCCESS /*implementation defined*/ #define EXIT_FAILURE /*implementation defined*/ The EXIT_SUCCESS and EXIT_FAILURE macros expand into integral expressions that can be used as arguments to the exit function (and, therefore, as the values to return from the main function), and indicate program execution status. Constant Explanation EXIT_SUCCESS successful execution of a program EXIT_FAILURE unsuccessful execution of

break statement

Causes the enclosing for, while or do-while loop or switch statement to terminate. Used when it is otherwise awkward to terminate the loop using the condition expression and conditional statements. Syntax break ; Appears only within the statement of a loop body (while, do, for) or within the statement of a switch. Explanation After this statement the control is transferred to the statement or declaration immediately following the enclosing loop or switch, as if by goto. Keyword

abs

Defined in header <stdlib.h> int abs( int n ); long labs( long n ); long long llabs( long long n ); (since C99) Defined in header <inttypes.h> intmax_t imaxabs( intmax_t n ); (since C99) Computes the absolute value of an integer number. The behavior is undefined if the result cannot be represented by the return type. Parameters n - integer value Return value The absolute value of n (i.e. |n|), if it is representable.

scanf

Defined in header <stdio.h> (1) ​int scanf( const char *format, ... );​ (until C99) ​int scanf( const char *restrict format, ... );​ (since C99) (2) int fscanf( FILE *stream, const char *format, ... ); (until C99) int fscanf( FILE *restrict stream, const char *restrict format, ... ); (since C99) (3) int sscanf( const char *buffer, const char *format, ... ); (until C99) int sscanf( const char *restrict buff

Function declarations

A function declaration introduces an identifier that designates a function and, optionally, speicifies the types of the function parameters (the prototype). Function declarations (unlike definitions) may appear at block scope as well as file scope. Syntax In the declaration grammar of an function declaration, the type-specifier sequence, possibly modified by the declarator, designates the return type (which may be any type other than array or function type), and the declarator has one of two

srand

Defined in header <stdlib.h> void srand( unsigned seed ); Seeds the pseudo-random number generator used by rand() with the value seed. If rand() is used before any calls to srand(), rand() behaves as if it was seeded with srand(1). Each time rand() is seeded with srand(), it must produce the same sequence of values. srand() is not guaranteed to be thread-safe. Parameters seed - the seed value Return value (none). Notes Generally speaking, the pseudo-random

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