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

tss_create

Defined in header <threads.h> int tss_create( tss_t* tss_key, tss_dtor_t destructor ); (since C11) Creates new thread-specific storage key and stores it in the object pointed to by tss_key. Although the same key value may be used by different threads, the values bound to the key by tss_set are maintained on a per-thread basis and persist for the life of the calling thread. The value NULL is associated with the newly created key in all existing threads, and upon thread creat

towctrans

Defined in header <wctype.h> wint_t towctrans( wint_t wc, wctrans_t desc ); (since C95) Maps the wide character wc using the current C locale's LC_CTYPE mapping category identified by desc. Parameters wc - the wide character to map desc - the LC_CTYPE mapping, obtained from a call to wctrans Return value The mapped value of wc using the mapping identified by desc in LC_CTYPE facet of the current C locale. Example #include <locale.h> #include &

towupper

Defined in header <wctype.h> wint_t towupper( wint_t wc ); (since C95) Converts the given wide character to uppercase, if possible. Parameters wc - wide character to be converted Return value Uppercase version of wc or unmodified wc if no uppercase version is listed in the current C locale. Notes Only 1:1 character mapping can be performed by this function, e.g. the uppercase form of 'ß' is (with some exceptions) the two-character string "SS", which cannot

trunc

Defined in header <math.h> float truncf( float arg ); (1) (since C99) double trunc( double arg ); (2) (since C99) long double truncl( long double arg ); (3) (since C99) Defined in header <tgmath.h> #define trunc( arg ) (4) (since C99) 1-3) Computes the nearest integer not greater in magnitude than arg. 4) Type-generic macro: If arg has type long double, truncl is called. Otherwise, if arg has integer type or the type double, trun

tss_delete

Defined in header <threads.h> void tss_delete( tss_t tss_id ); (since C11) Destroys the thread-specific storage identified by tss_id. The destructor, if one was registered by tss_create, is not called (they are only called at thread exit, either by thrd_exit or by returning from the thread function), it is the responsibility of the programmer to ensure that every thread that is aware of tss_id performed all necessary cleanup, before the call to tss_delete is made. If tss_de

towlower

Defined in header <wctype.h> wint_t towlower( wint_t wc ); (since C95) Converts the given wide character to lowercase, if possible. Parameters wc - wide character to be converted Return value Lowercase version of wc or unmodified wc if no lowercase version is listed in the current C locale. Notes Only 1:1 character mapping can be performed by this function, e.g. the Greek uppercase letter 'Σ' has two lowercase forms, depending on the position in a word: 'σ'

tolower

Defined in header <ctype.h> int tolower( int ch ); Converts the given character to lowercase according to the character conversion rules defined by the currently installed C locale. In the default "C" locale, the following uppercase letters ABCDEFGHIJKLMNOPQRSTUVWXYZ are replaced with respective lowercase 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

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

time_t

Defined in header <time.h> typedef /* unspecified */ time_t; Arithmetic (until C11) Real (since C11) type capable of representing times. Although not defined by the C standard, this is almost always an integral value holding the number of seconds (not counting leap seconds) since 00:00, Jan 1 1970 UTC, corresponding to POSIX time. Notes The standard uses the term calendar time when referring to a value of type time_t. Example Show the start of the epoch. #include &l