c32rtomb

Defined in header <uchar.h> size_t c32rtomb( char* s, char32_t c32, mbstate_t* ps ); (since C11) Converts a 32-bit wide character to its narrow multibyte representation. If s is not a null pointer, the function determines the number of bytes necessary to store the multibyte character representation of c32 (including any shift sequences), and stores the multibyte character representation in the character array whose first element is pointed to by s. At most MB_CUR_MAX bytes

Type

(See also arithmetic types for the details on most built-in types and the list of type-related utilities that are provided by the C library). Objects, functions, and expressions have a property called type, which determines the interpretation of the binary value stored in an object or evaluated by the expression. Type classification The C type system consists of the following types: the type void basic types the type char signed integer types standard: signed char, short, int, long, lon

Arithmetic operators

Arithmetic operators apply standard mathematical operations to their operands. Operator Operator name Example Result + unary plus +a the value of a after promotions - unary minus -a the negative of a + addition a + b the addition of a and b - subtraction a - b the subtraction of b from a * product a * b the product of a and b / division a / b the division of a by b % modulo a % b the remainder of a divided by b ~ bitwise NOT ~

_Atomic

Usage atomic type specifier and qualifier

toupper

Defined in header <ctype.h> int toupper( int ch ); Converts the given character to uppercase according to the character conversion rules defined by the currently installed C locale. In the default "C" locale, the following lowercase letters abcdefghijklmnopqrstuvwxyz are replaced with respective uppercase letters ABCDEFGHIJKLMNOPQRSTUVWXYZ. Parameters ch - character to be converted. If the value of ch is not representable as unsigned char and does not equal EOF, the

mktime

Defined in header <time.h> time_t mktime( struct tm *time ); Renormalizes local calendar time expressed as a struct tm object and also converts it to time since epoch as a time_t object. time->tm_wday and time->tm_yday are ignored. The values in time are not checked for being out of range. A negative value of time->tm_isdst causes mktime to attempt to determine if Daylight Saving Time was in effect in the specified time. If the conversion to time_t is successful, t

wcsstr

Defined in header <wchar.h> wchar_t* wcsstr( const wchar_t* dest, const wchar_t* src ); (since C95) Finds the first occurrence of the wide string src in the wide string pointed to by dest. The terminating null characters are not compared. Parameters dest - pointer to the null-terminated wide string to examine src - pointer to the null-terminated wide string to search for Return value Pointer to the first character of the found substring in dest, or NULL

memcmp

Defined in header <string.h> int memcmp( const void* lhs, const void* rhs, size_t count ); Compares the first count characters of the objects pointed to by lhs and rhs. The comparison is done lexicographically. The sign of the result is the sign of the difference between the values of the first pair of bytes (both interpreted as unsigned char) that differ in the objects being compared. The behavior is undefined if access occurs beyond the end of either object pointed to by

fwrite

Defined in header <stdio.h> size_t fwrite( const void *buffer, size_t size, size_t count, FILE *stream ); (until C99) size_t fwrite( const void *restrict buffer, size_t size, size_t count, FILE *restrict stream ); (since C99) Writes count of objects in the given array buffer to the output stream stream. Objects are not interpreted in any way. Parameters buffer - pointer to the first object object in the array to be written size

strtok

Defined in header <string.h> (1) char *strtok( char *str, const char *delim ); (until C99) char *strtok( char *restrict str, const char *restrict delim ); (since C99) char *strtok_s(char *restrict str, rsize_t *restrict strmax, const char *restrict delim, char **restrict ptr); (2) (since C11) 1) Finds the next token in a null-terminated byte string pointed to by str. The separator characters are identified by null-terminated byte string pointed to by delim