MCPcopy Create free account

hub / github.com/KaisenAmin/c_std / functions

Functions2,651 in github.com/KaisenAmin/c_std

↓ 1 callersFunctionsysinfo_available_memory_bytes
* @brief Returns the amount of physical memory currently available, in bytes. * * Implementation: * - Windows: `GlobalMemoryStatusEx(ullAvailPhys)
sysinfo/sysinfo.c:2780
↓ 1 callersFunctionsysinfo_cpu_architecture
* @brief Return the CPU architecture string ("x86_64", "ARM", ...). * * @return Pointer to a static string. Never NULL. */
sysinfo/sysinfo.c:831
↓ 1 callersFunctionsysinfo_kernel_type
* @brief Return the kernel type identifier (e.g. "Windows NT", "Linux"). * * Useful for branching on a coarse OS family without parsing version * s
sysinfo/sysinfo.c:789
↓ 1 callersFunctionsysinfo_kernel_version
* @brief Return the kernel version string (e.g. "10.0.26100" / * "6.8.0-35-generic"). * * On Windows uses `GetVersionEx`; on Linux uses `una
sysinfo/sysinfo.c:767
↓ 1 callersFunctionsysinfo_product_type
* @brief Return the OS product type / distribution name. * * Cross-platform dispatcher: returns `"Windows"` on Windows, the * distributor ID (e.g.
sysinfo/sysinfo.c:745
↓ 1 callersFunctionsysinfo_product_version
* @brief Return the OS version (release) string. * * Cross-platform dispatcher: * - Windows: `get_windows_version()` (uses `GetVersion`). * -
sysinfo/sysinfo.c:715
↓ 1 callersFunctionsysinfo_total_memory_bytes
* @brief Returns the total amount of physical memory in bytes. * * Implementation: * - Windows: `GlobalMemoryStatusEx(ullTotalPhys)`. * - Linux:
sysinfo/sysinfo.c:2736
↓ 1 callersFunctiontask_queue_init
Initialize TaskQueue */
concurrent/thread_pool.c:61
↓ 1 callersFunctiontcp_accept
* @brief Accepts a connection on a TCP socket. * * This function accepts an incoming connection on the specified listening socket and returns the n
network/tcp.c:280
↓ 1 callersFunctiontcp_bind
* @brief Binds a TCP socket to a specific host and port. * * This function binds the provided socket to the specified host and port, allowing the s
network/tcp.c:218
↓ 1 callersFunctiontcp_format_error_message
Utility function to populate human-readable error message
network/tcp.c:86
↓ 1 callersFunctiontcp_get_sock_name
* @brief Retrieves the local address and port of a TCP socket. * * This function retrieves the local IP address and port number associated with the
network/tcp.c:980
↓ 1 callersFunctiontcp_get_socket_error
* @brief Retrieve (and clear) the pending socket error via `SO_ERROR`. * * Reads the `SO_ERROR` socket option, which holds the OS error code of the
network/tcp.c:2392
↓ 1 callersFunctiontcp_listen
* @brief Sets a TCP socket to listen for incoming connections. * * This function marks the socket as a passive socket, which means it will be used
network/tcp.c:255
↓ 1 callersFunctiontcp_send
* @brief Sends data over a TCP socket. * * This function sends data from the provided buffer over the specified TCP socket. It handles both * Win
network/tcp.c:442
↓ 1 callersFunctiontcp_set_reuse_addr
* @brief Sets the SO_REUSEADDR option on a TCP socket. * * This function allows the reuse of local addresses on a TCP socket, enabling multiple conn
network/tcp.c:882
↓ 1 callersFunctiontcp_ssl_recv
* @brief Receives data over an SSL connection. * * This function reads data from an SSL-encrypted connection associated with the specified socket.
network/tcp.c:1723
↓ 1 callersFunctiontcp_ssl_send
* @brief Sends data over an SSL connection. * * This function writes data to an SSL-encrypted connection associated with the specified socket. * It
network/tcp.c:1640
↓ 1 callersFunctiontcp_ssl_set_verify
* @brief Enable/disable fail-closed certificate verification on the SSL context. * * With verify_peer = true the TLS handshake aborts on an untruste
network/tcp.c:1279
↓ 1 callersFunctionthread_create
* Creates a new thread. * * This function initializes a new thread, assigning it to execute the specified * `func` function with `arg` as its argum
concurrent/concurrent.c:984
↓ 1 callersFunctionthread_hardware_concurrency
* @brief Returns the number of hardware threads (logical CPUs) available to the * process — analogous to C++17's `std::thread::hardware_concur
concurrent/concurrent.c:1062
↓ 1 callersFunctionthread_join
* Waits for a thread to terminate and optionally retrieves the thread's exit code. * * This function blocks the calling thread until the specified t
concurrent/concurrent.c:1207
↓ 1 callersFunctionthread_pool_add_task_checked
* @brief Submit a task, reporting whether it was actually queued. * * Identical to `thread_pool_add_task`, but returns a status instead of failing
concurrent/thread_pool.c:258
↓ 1 callersFunctionthread_pool_create
* @brief Create and start a thread pool with the requested number of worker threads. * * On success, returns a pool whose workers are blocked waitin
concurrent/thread_pool.c:79
↓ 1 callersFunctionthread_pool_wait
* @brief Block until every previously-added task has finished executing. * * Returns immediately if the queue is empty and no worker is busy. NULL p
concurrent/thread_pool.c:184
↓ 1 callersFunctionthread_yield
* Yields the execution of the current thread. * * This function allows the current thread to offer the remainder of its time slice * to other threa
concurrent/concurrent.c:1333
↓ 1 callersFunctiontime_add_msecs
* @brief This function adds the specified number of milliseconds to the provided Time object. * It handles the overflow of milliseconds to seconds,
time/std_time.c:149
↓ 1 callersFunctiontime_current_time
* @brief This function returns a Time object representing the current system time. * It is compatible with both Windows and Unix-like systems. On Wi
time/std_time.c:69
↓ 1 callersFunctiontime_is_greater_than
* @brief This function compares two Time objects and returns true if the first Time object (`lhs`) * represents a later time than the second Time ob
time/std_time.c:623
↓ 1 callersFunctiontime_monotonic_nsecs
* @brief Monotonic clock reading in nanoseconds. * * Returns a steadily-increasing count from an unspecified epoch — only the * DIFFERENCE between
time/std_time.c:1183
↓ 1 callersFunctiontuple_is_equal
* @brief This function compares two tuples element by element. It returns `true` if the tuples * have the same size and their corresponding elements
tuple/tuple.c:362
↓ 1 callersFunctionturtle_close_window
* @brief Closes the window used by the turtle graphics. * * This function closes the window where turtle drawings are rendered. * It should be ca
turtle/turtle.c:148
↓ 1 callersFunctionturtle_left
* @brief Turns the turtle to the left by a specified angle. * * This function turns the turtle to the left (counterclockwise) by increasing the tur
turtle/turtle.c:482
↓ 1 callersFunctionturtle_towards
* @brief Angle (in degrees, 0..360) from the turtle's current * position to the point @p (x, y). * * Uses the same y-axis convention as `tur
turtle/turtle.c:1390
↓ 1 callersFunctionudp_endpoint_equal
* @brief True if two endpoints share family, address and port. * * @param a First endpoint. May be NULL. * @param b Second endpoint. May be NULL.
network/udp.c:1488
↓ 1 callersFunctionudp_recvfrom_endpoint
* @brief Receive a datagram and capture the sender into src (may be NULL). * Mirrors udp_recvfrom but yields a reusable endpoint, not a string
network/udp.c:1401
↓ 1 callersFunctionudp_sendto_endpoint
* @brief Send a buffer to a pre-resolved endpoint (no name resolution). * * Fast-path counterpart to udp_sendto; also used to reply to a sender capt
network/udp.c:1372
↓ 1 callersFunctionudp_wait_readable
* @brief Wait until the socket has a datagram ready to read, or time out. * * Blocks in `select()` until data arrives or @p timeout_ms elapses — the
network/udp.c:1281
↓ 1 callersFunctionunittest_get_mock_call_by_index
* @brief Look up the @p call_index-th recorded call to @p function_name. * * Emits a single-line debug print indicating whether a match was found *
unittest/unittest.c:471
↓ 1 callersFunctionuptr_destroy
* @brief Release the owned pointer (if any) by running the deleter, * then reset the UniquePtr to empty. * * Idempotent and NULL-safe — call
uniqueptr/uniqueptr.c:60
↓ 1 callersFunctionuptr_none
* @brief Build an empty UniquePtr. Equivalent to a default-constructed * `std::unique_ptr`. */
uniqueptr/uniqueptr.c:41
↓ 1 callersFunctionuuid_ci_prefix
Case-insensitive prefix test (avoids the non-standard strncasecmp). */
uuid/uuid.c:310
↓ 1 callersFunctionuuid_hex_val
uuid/uuid.c:294
↓ 1 callersFunctionuuid_now_unix_ms
Current Unix time in milliseconds — for UUIDv7. clock_gettime(CLOCK_REALTIME) gives wall-clock time since the Unix epoch on both POSIX and MinGW. *
uuid/uuid.c:276
↓ 1 callersFunctionuuid_to_string
* @brief Write the canonical lowercase text form of @p u into @p out. * * Produces the 36-character form `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` * f
uuid/uuid.c:587
↓ 1 callersFunctionuuid_version
* @brief Return the version number of @p u. * * Reads the 4-bit version field (the high nibble of octet 6). * * @param u The UUID. * @return The
uuid/uuid.c:739
↓ 1 callersFunctionvariant_array_reserve
* @brief Make sure the array can hold at least @p min_capacity * without further reallocation. */
variant/variant.c:1225
↓ 1 callersFunctionvariant_compare
* @brief Strcmp-like compare. Same-tag values are compared by value; * different-tag values are compared by tag (so NONE < INT < * LON
variant/variant.c:899
↓ 1 callersFunctionvariant_from_bool
* @brief Build a BOOL-tagged variant holding @p x. * @param x Value to store. * @return Variant whose `type == VARIANT_TYPE_BOOL`. */
variant/variant.c:174
↓ 1 callersFunctionvariant_from_char
* @brief Build a CHAR-tagged variant holding the byte @p x. * * `char` here is the single-byte integer, not a code point — pass `'A'`, * not a mult
variant/variant.c:159
↓ 1 callersFunctionvariant_from_custom
* @brief Build a CUSTOM-tagged variant holding a user-defined value. * * `info->size` bytes are deep-copied from @p src into freshly-allocated * st
variant/variant.c:260
↓ 1 callersFunctionvariant_from_double
* @brief Build a DOUBLE-tagged variant holding @p x. * @param x Value to store (by value). * @return Variant whose `type == VARIANT_TYPE_DOUBLE`.
variant/variant.c:140
↓ 1 callersFunctionvariant_from_float
* @brief Build a FLOAT-tagged variant holding @p x. * @param x Value to store (by value). * @return Variant whose `type == VARIANT_TYPE_FLOAT`. */
variant/variant.c:125
↓ 1 callersFunctionvariant_from_int
* @brief Build an INT-tagged variant holding @p x. * @param x Value to store (by value). * @return Variant whose `type == VARIANT_TYPE_INT`. */
variant/variant.c:95
↓ 1 callersFunctionvariant_from_long
* @brief Build a LONG-tagged variant holding @p x. * @param x Value to store (by value). * @return Variant whose `type == VARIANT_TYPE_LONG`. */
variant/variant.c:110
↓ 1 callersFunctionvariant_from_pointer
* @brief Build a POINTER-tagged variant holding the raw address @p x. * * The variant does **NOT** take ownership of what @p x points to. The * cal
variant/variant.c:199
↓ 1 callersFunctionvariant_from_string
* @brief Build a STRING-tagged variant holding a deep copy of @p x. * * The bytes are duplicated into freshly-allocated storage owned by the * vari
variant/variant.c:223
↓ 1 callersFunctionvariant_print
* @brief Print @p v to stdout using `variant_to_string`'s formatting. * * No trailing newline. Internally allocates a heap buffer via * `variant_to
variant/variant.c:1138
↓ 1 callersFunctionvariant_to_string
* @brief Heap-allocated rendering of the variant. Caller frees(). * Uses quoting for string and 'x' for char so different types * roun
variant/variant.c:1082
↓ 1 callersFunctionvecbuf_next_capacity
Doubling growth policy, overflow-safe. Returns the next capacity that is at * least `minNeeded`; falls back to 8 from empty and clamps to the largest
vector/vector.c:41
↓ 1 callersFunctionvecbuf_push_back_grow
* @brief This function adds a new element to the end of the vector by copying the given item * into the vector's storage. It ensures that there is e
vector/vector.c:779
↓ 1 callersFunctionvector_data
* @brief This function provides direct access to the internal data of the vector. It returns a pointer * to the beginning of the array where the ele
vector/vector.c:1261
↓ 1 callersFunctionvector_erase
* @brief This function removes a specified number of elements starting from a given position in * the vector. The elements that follow the removed r
vector/vector.c:374
↓ 1 callersFunctionvector_front
* @brief This function provides access to the first element stored in the vector. It returns a pointer * to the first element, allowing you to modif
vector/vector.c:1195
↓ 1 callersFunctionwin_strptime
date/date.c:136
↓ 1 callersFunctionxml_collect_descendants_by_tag_ez
Recursive collector: append every descendant of `node` whose tag matches * `tag_name` into `out[*idx]` (raw ezxml pointers, document/pre-order). The
xml/xml.c:2655
↓ 1 callersFunctionxml_find_descendant_by_attr_ez
DFS helper: first descendant whose `attr_name` attribute equals * `attr_value`. If @p attr_value is NULL, matches any element that * carries the att
xml/xml.c:2312
↓ 1 callersFunctionxml_find_descendant_ez
* @brief Finds an XML element by its tag name. * * This function searches for the first child element with the specified tag name in the given root
xml/xml.c:1525
FunctionSerialEventThread
serial_port/serial_port.c:58
Function__array_all_of_impl
* @brief Internal implementation of array_all_of. */
array/array.h:481
Function__array_any_of_impl
* @brief Internal implementation of array_any_of. */
array/array.h:459
Function__array_at_checked_impl
* @brief Internal implementation of array_at_checked. * * Returns a pointer to the element at `index`, or NULL when `index` * is out of range. Unli
array/array.h:101
Function__array_copy_impl
* @brief Internal implementation of array_copy. * * Copies the content from the source to destination. */
array/array.h:204
Function__array_count_if_impl
* @brief Internal implementation of array_count_if. */
array/array.h:436
Function__array_find_if_impl
* @brief Internal implementation of array_find_if. */
array/array.h:258
Function__array_find_impl
* @brief Internal implementation of array_find. * * Searches the array for an element equal to the key using the * comparison function. Returns the
array/array.h:236
Function__array_for_each_impl
* @brief Internal implementation of array_for_each. * * Applies a function to every element in the array. */
array/array.h:353
Function__array_max_element_impl
* @brief Internal implementation of array_max_element. * * Returns a pointer to the largest element according to `cmp` * (the first one encountered
array/array.h:318
Function__array_min_element_impl
* @brief Internal implementation of array_min_element. * * Returns a pointer to the smallest element according to `cmp` * (the first one encountere
array/array.h:282
Function__array_reduce_impl
* @brief Internal implementation of array_reduce. * * Reduces the array to a single value by applying a binary reduction * function. `result` must
array/array.h:401
Function__array_reverse_impl
* @brief Internal implementation of array_reverse. * * Reverses a block of memory in place. */
array/array.h:160
Function__array_sort_impl
* @brief Internal implementation of array_sort. * * Sorts an array using the standard qsort function. */
array/array.h:186
Function__array_transform_impl
* @brief Internal implementation of array_transform. * * Applies a transformation function to each element of the source array and * writes the res
array/array.h:376
Function__fmt_fprint
* @brief Writes a formatted string to the specified file stream without adding a newline. * Handles multiple arguments, writing them sequentially to
fmt/fmt.c:490
Function__fmt_fprintln
* @brief Writes a formatted string to the specified file stream, adding spaces and a newline. * Handles multiple arguments, writing them sequentially
fmt/fmt.c:520
Function__fmt_print
* @brief Prints a formatted string to the console without a newline. * Handles Unicode on Windows and uses standard output on other platforms. */
fmt/fmt.c:27
Function__fmt_println
* @brief Prints a formatted string to the console with a newline. * Adds a space separator between arguments and handles Unicode on Windows. */
fmt/fmt.c:55
Function__fmt_sprint
* @brief Constructs a formatted string with spaces between arguments but without a newline at the end. * Handles Unicode on Windows and returns a dyn
fmt/fmt.c:247
Function__fmt_sprintln
* @brief Constructs a formatted string with spaces between arguments and a newline at the end. * Handles Unicode on Windows and returns a dynamically
fmt/fmt.c:133
Function_cthread_tss_callback
* This function acts as a callback for thread or process termination events in Windows environments. * It checks if there are any thread-specific sto
concurrent/concurrent.c:878
Function_thrd_wrapper_function
concurrent/concurrent.c:931
Function_tthread_timespec_get
concurrent/concurrent.c:1571
Functionalgorithm_accumulate
* @brief Accumulates a result by applying an operation sequentially to the elements in a range. * * This function applies the operation `op` to the
algorithm/algorithm.c:635
Functionalgorithm_adjacent_find
* @brief Finds the first occurrence of two consecutive elements that are equal. * * This function searches through the array pointed to by `base` an
algorithm/algorithm.c:1800
Functionalgorithm_all_of
* @brief Checks if all elements in a range satisfy a predicate. * * This function returns `true` if the predicate `pred` returns `true` for all elem
algorithm/algorithm.c:664
Functionalgorithm_any_of
* @brief Checks if any element in a range satisfies a predicate. * * This function returns `true` if the predicate `pred` returns `true` for any ele
algorithm/algorithm.c:693
Functionalgorithm_begin
* @brief Returns a pointer to the first element of an array. * * @param base Pointer to the start of the array. * @return Pointer to the first elem
algorithm/algorithm.c:2225
Functionalgorithm_binary_search
* @brief Performs a binary search to find the index of a value in a sorted range. * * This function performs a binary search on a sorted range `[bas
algorithm/algorithm.c:478
Functionalgorithm_copy
* @brief Copies elements from a source array to a destination array. * * @param source Pointer to the source array. * @param num Number of elements
algorithm/algorithm.c:606
Functionalgorithm_copy_backward
* @brief Copies a range of elements in reverse order. * * @param first Pointer to the start of the range. * @param last Pointer to the end of the r
algorithm/algorithm.c:1293
← previousnext →801–900 of 2,651, ranked by callers