tan

Defined in header <math.h> float tanf( float arg ); (1) (since C99) double tan( double arg ); (2) long double tanl( long double arg ); (3) (since C99) Defined in header <tgmath.h> #define tan( arg ) (4) (since C99) 1-3) Computes the tangent of arg (measured in radians). 4) Type-generic macro: If the argument has type long double, tanl is called. Otherwise, if the argument has integer type or the type double, tan is called. Otherwi

system

Defined in header <stdlib.h> int system( const char *command ); Calls the host environment's command processor with command parameter. Returns implementation-defined value (usually the value that the invoked program returns). If command is NULL pointer, checks if host environment has a command processor and returns nonzero value only if it the command processor exists. Parameters command - character string identifying the command to be run in the command processor.

switch statement

Executes code according to the value of an integral argument. Used where one or several out of many branches of code need to be executed according to an integral value. Syntax switch ( expression ) statement expression - any expression of integer type (char, signed or unsigned integer, or enumeration) statement - any statement (typically a compound statement). case: and default: labels are permitted in statement, and break; statement has special meaning. case constant_

switch

Usage switch statement: as the declaration of the statement

strxfrm

Defined in header <string.h> size_t strxfrm( const char *dest, const char *src, size_t count ); (until C99) size_t strxfrm( const char *restrict dest, const char *restrict src, size_t count ); (since C99) Transforms the null-terminated byte string pointed to by src into the implementation-defined form such that comparing two transformed strings with strcmp gives the same result as comparing the original strings with

Struct declaration

A struct is a type consisting of a sequence of members whose storage is allocated in an ordered sequence (as opposed to union, which is a type consisting of a sequence of members whose storage overlaps). The type specifier for a struct is identical to the union type specifier except for the keyword used: Syntax struct name(optional) { struct-declaration-list } (1) struct name (2) 1) Struct definition: introduces the new type struct name and defines its meaning 2) If used o

Struct and union initialization

When initializing an object of struct or union type, the initializer must be a non-empty, brace-enclosed, comma-separated list of initializers for the members: = { designator(optional) expression , ... } where the designator is a sequence (whitespace-separated or adjacent) of individual member designators of the form . member and array designators of the form [ index ]. All members that are not initialized explicitly are initialized implicitly the same way as objects that have static

struct

Usage declaration of a compound type

strtoul

Defined in header <stdlib.h> unsigned long strtoul( const char *str, char **str_end, int base ); (until C99) unsigned long strtoul( const char *restrict str, char **restrict str_end, int base ); (since C99) unsigned long long strtoull( const char *restrict str, char **restrict str_end, int base ); (since C99) Interprets an unsigned integer value in

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