Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / C

Knowledge base — C

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 472

C

tss_create — create a thread-specific storage key

tss_create creates a key holding a separate pointer value for each thread. Check the result before using the key and plan how resources will be released.

Intermediate · C23; repository compiler flag, production runtime not attested
C

tss_delete — deleting a thread-specific storage key

tss_delete releases resources for a thread-specific storage key, but does not invoke destructors or automatically free the pointed-to data.

Intermediate · C23; repository compiler flag, production runtime not attested
C

tss_get — read a thread-specific pointer

tss_get reads the pointer stored under a thread-specific storage key for the calling thread.

Intermediate · C23; repository compiler flag, production runtime not attested
C

tss_set — setting a thread-specific pointer

tss_set stores a pointer under a thread-specific storage key for the current thread and returns an operation status.

Intermediate · C23; repository compiler flag, production runtime not attested
C

ungetc — pushing a character back onto a stream

ungetc pushes a character back for another input read without modifying the file. Portable code can rely on space for one character.

Basic · C23; repository compiler flag, production runtime not attested
C

va_arg — read the next argument

The va_arg macro from <stdarg.h> reads the next argument in a function's ... portion and advances va_list state.

Intermediate · C23; repository compiler flag, production runtime not attested
C

va_copy — copying argument-list state

va_copy initializes independent va_list state at the source's current position, allowing separate reads of the same arguments.

Intermediate · C23; repository compiler flag, production runtime not attested
C

va_end — finish using an argument list

va_end from <stdarg.h> finishes using a va_list. Each va_start or va_copy requires a matching va_end in the same function.

Intermediate · C23; repository compiler flag, production runtime not attested
C

va_start — initialize access to variable arguments

The va_start macro from <stdarg.h> initializes a va_list for reading arguments passed through an ellipsis. In C23, calling va_start(ap) is sufficient.

Intermediate · C23; repository compiler flag, production runtime not attested
C

vfprintf — formatted output from va_list

vfprintf writes formatted data to a FILE stream, taking arguments from a va_list rather than a variable argument list.

Intermediate · C23; repository compiler flag, production runtime not attested
C

vprintf — formatted output from a va_list

vprintf writes formatted text to stdout using arguments from a va_list. It supports custom output functions that accept a variable number of arguments.

Intermediate · C23; repository compiler flag, production runtime not attested
C

vsnprintf — formatting a va_list into a bounded buffer

vsnprintf formats arguments supplied through va_list. It limits writes to the buffer capacity, while its returned length lets you detect truncated output.

Intermediate · C23; repository compiler flag, production runtime not attested
C

wcscmp — comparing wide strings

wcscmp compares null-terminated wchar_t strings; the sign of its result matters, not its exact value.

Basic · C23; repository compiler flag, production runtime not attested
C

wcscpy — copy a wide string

wcscpy copies a wchar_t string including its terminator. The destination must be large enough, and the copied regions must not overlap.

Basic · C23; repository compiler flag, production runtime not attested
C

wcslen — wide-string length

wcslen from <wchar.h> returns the number of wchar_t elements before the first null wide character, excluding that terminator.

Basic · C23; repository compiler flag, production runtime not attested
C

wcsncmp — bounded wide-character comparison

wcsncmp compares at most n wchar_t elements. Its result describes ordering or equality of the compared portion, not necessarily entire strings.

Basic · C23; repository compiler flag, production runtime not attested
C

wcsncpy — bounded wide-character copying

wcsncpy copies wchar_t elements, padding short results with zeros but not guaranteeing string termination.

Basic · C23; repository compiler flag, production runtime not attested
C

wcsstr — finding a substring in a wide string

wcsstr finds the first occurrence of a wide substring. It returns a pointer to the match, or NULL when no match exists.

Intermediate · C23; repository compiler flag, production runtime not attested
C

<assert.h> — runtime assertions

The <assert.h> header provides assert for checking program assumptions; NDEBUG disables these checks.

Basic · C23; repository compiler flag, production runtime not attested
C

<complex.h> — complex arithmetic

The <complex.h> header provides macros and functions for complex numbers: constructing values and reading their real and imaginary components.

Basic · C23; repository compiler flag, production runtime not attested
C

<errno.h> — error codes

The <errno.h> header provides errno and error-code macros. Interpret them according to the called function's contract.

Basic · C23; repository compiler flag, production runtime not attested