MCPcopy Create free account

hub / github.com/KaisenAmin/c_std / functions

Functions2,651 in github.com/KaisenAmin/c_std

↓ 3 callersFunctiontime_is_valid_time
* @brief This function checks if the provided hour, minute, second, and millisecond values represent a valid time. * * @param h The hour (0-23). *
time/std_time.c:480
↓ 3 callersFunctiontuple_create
* @brief This function allocates memory for a tuple and its elements based on the given size. * Each element is initialized to `NULL`. * * @param
tuple/tuple.c:46
↓ 3 callersFunctiontuple_deallocate
* @brief This function frees all memory associated with the tuple, including the memory used by each element. * * @param tuple A pointer to the `Tu
tuple/tuple.c:78
↓ 3 callersFunctiontuple_set
* @brief This function assigns new data to the specified element of the tuple. * It allocates memory for the new data and copies it into the tuple,
tuple/tuple.c:112
↓ 3 callersFunctionturtle_forward
* @brief Moves the turtle forward by a specified distance. * * This function moves the turtle forward by the given distance, drawing a line if the p
turtle/turtle.c:357
↓ 3 callersFunctionturtle_render_texts
Render every recorded text label. Called from each frame-drawing routine * (turtle_forward, turtle_draw, turtle_done) so labels persist like lines. *
turtle/turtle.c:335
↓ 3 callersFunctionvector_back
* @brief This function provides access to the last element stored in the vector. It returns a pointer * to the last element, allowing you to modify
vector/vector.c:1227
↓ 3 callersFunctionvector_emplace_back
* @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:731
↓ 3 callersFunctionvector_is_empty
* @brief This function checks if the vector contains any elements. It returns `true` if the vector * is empty (i.e., its size is 0) and `false` othe
vector/vector.c:339
↓ 3 callersFunctionvector_is_greater
* @brief This function compares two vectors element by element to determine if the first vector (`vec1`) * is lexicographically greater than the sec
vector/vector.c:207
↓ 3 callersFunctionvector_is_less
* @brief This function compares two vectors element by element to determine if the first vector (`vec1`) * is lexicographically less than the second
vector/vector.c:171
↓ 2 callersFunction_cnd_timedwait_win32
concurrent/concurrent.c:657
↓ 2 callersFunctioncl_parse_port
Parse a 1..65535 port from s[0..n). false on empty / non-digit / out-of-range. */
network/http.c:2387
↓ 2 callersFunctioncli_find_command
* @brief Finds and returns a pointer to a command by its name. * * This function searches for a command in the CLI parser by its name. If found, a p
cli/cli.c:625
↓ 2 callersFunctioncli_parse_args
* @brief Parses command-line arguments and executes the corresponding command or options. * * @param parser A pointer to the `CliParser` instance. M
cli/cli.c:763
↓ 2 callersFunctioncmp_prim_bool
variant/variant.c:888
↓ 2 callersFunctioncmp_prim_char
variant/variant.c:887
↓ 2 callersFunctioncmp_prim_double
variant/variant.c:885
↓ 2 callersFunctioncmp_prim_float
variant/variant.c:883
↓ 2 callersFunctioncmp_prim_int
variant/variant.c:881
↓ 2 callersFunctioncmp_prim_long
variant/variant.c:882
↓ 2 callersFunctioncmp_prim_ptr
variant/variant.c:889
↓ 2 callersFunctioncryp_aead_open
Shared AEAD decrypt: verifies `tag`; returns NULL (and wipes the partial * plaintext) on authentication failure. */
crypto/crypto.c:1501
↓ 2 callersFunctioncryp_aead_seal
Shared AEAD encrypt (GCM / ChaCha20-Poly1305): writes the tag to `tag`. */
crypto/crypto.c:1457
↓ 2 callersFunctioncryp_aes_cipher
Resolve an AES EVP_CIPHER from key length (16/24/32) and mode, or NULL. */
crypto/crypto.c:1312
↓ 2 callersFunctioncryp_gcm_cipher
crypto/crypto.c:1552
↓ 2 callersFunctioncrypto_hex_nibble
Parse one hex character into its 0..15 value; return -1 on miss. */
crypto/crypto.c:958
↓ 2 callersFunctioncrypto_pbkdf2
* @brief Password-Based Key Derivation Function 2 (PBKDF2). * * Stretches a low-entropy password into a higher-entropy key using * iterated HMAC. T
crypto/crypto.c:1124
↓ 2 callersFunctioncrypto_random_bytes
* @brief Fill a buffer with cryptographically-secure random bytes. * * Wraps OpenSSL's `RAND_bytes`, which on production builds is backed * by the
crypto/crypto.c:908
↓ 2 callersFunctioncrypto_secure_zero
* @brief Securely wipe `length` bytes at `ptr` (not optimized away). * * Use on key material / decrypted plaintext before freeing it. Wraps * OPENS
crypto/crypto.c:1305
↓ 2 callersFunctioncsv_file_create
* @brief Creates a new CsvFile structure with a specified delimiter. * * This function allocates memory for a new CsvFile structure and initializes
csv/csv.c:150
↓ 2 callersFunctioncustom_alloc
Allocate and initialise the storage for a CUSTOM variant. Returns * NULL on bad info or OOM. */
variant/variant.c:30
↓ 2 callersFunctiondate_compare
* @brief Three-way comparison of two dates that share a calendar. * * Convenient for sort comparators and cmp-style code: * * @code * int cmp = d
date/date.c:2218
↓ 2 callersFunctiondate_create_ymd
* @brief Creates a new Date object with the specified year, month, day, and calendar type. * * This function allocates memory for a new Date object
date/date.c:922
↓ 2 callersFunctiondate_day_of_year
* @brief Calculates the day of the year for the given date. * * This function calculates the day of the year for the specified Date object, ranging
date/date.c:1230
↓ 2 callersFunctiondate_gregorian_to_solar
* @brief Converts a Gregorian date to a Persian (Jalali) date. * * This function takes a Gregorian date and converts it to the corresponding date *
date/date.c:2014
↓ 2 callersFunctiondate_solar_to_gregorian
* @brief Converts a Persian (Jalali) date to a Gregorian date. * * This function takes a Persian date and converts it to the corresponding date * i
date/date.c:2077
↓ 2 callersFunctiondeque_clear
* @brief Clears all elements from the deque. * * This function removes all elements from the deque and frees the associated memory. * After clearin
deque/deque.c:346
↓ 2 callersFunctiondeque_empty
------------------------------------------------------------------ */ Inlined hot read accessors */ ----------
deque/deque.h:83
↓ 2 callersFunctiondeque_push_front
* @brief Inserts an item at the front of the deque. * * This function inserts a new item at the front of the deque. If necessary, it allocates a new
deque/deque.c:125
↓ 2 callersFunctionderive_key_from_password
dir/dir.c:442
↓ 2 callersFunctiondir_copy_file
* @brief Copies a file from a source path to a destination path. * * @param srcPath The source file path. * @param destPath The destination file pa
dir/dir.c:1066
↓ 2 callersFunctiondir_is_absolute_path
* @brief Reports whether @p path is an absolute filesystem path. * * Recognized as absolute: * - Windows: a leading backslash or forward slash (U
dir/dir.c:2509
↓ 2 callersFunctiondir_path_separator
* @brief Returns the native path separator for the current platform. * * Behavior: * - Windows builds (`_WIN32` / `_WIN64`) return `'\\'`. * -
dir/dir.c:2485
↓ 2 callersFunctiondll_make_owning_node
list/list.c:35
↓ 2 callersFunctionencoding_utf8_to_utf16
* @brief Converts a UTF-8 encoded string to a UTF-16 encoded string. * * This function converts a string from UTF-8 encoding to UTF-16 encoding. UTF
encoding/encoding.c:1564
↓ 2 callersFunctionencoding_utf8_to_utf32
* @brief Converts a UTF-8 encoded string to a UTF-32 encoded string. * * This function converts a string from UTF-8 encoding to UTF-32 encoding. UTF
encoding/encoding.c:1624
↓ 2 callersFunctionezxml_char_content
called when parser finds character content between open and closing tag
xml/xml.c:321
↓ 2 callersFunctionezxml_close_tag
called when parser finds closing tag
xml/xml.c:344
↓ 2 callersFunctionezxml_insert
inserts an existing tag into an ezxml structure
xml/xml.c:981
↓ 2 callersFunctionezxml_new
returns a new empty ezxml structure with the given root tag name
xml/xml.c:965
↓ 2 callersFunctionezxml_open_tag
called when parser finds start of new tag
xml/xml.c:306
↓ 2 callersFunctionezxml_proc_inst
called when the parser finds a processing instruction
xml/xml.c:376
↓ 2 callersFunctionfail_neg
* @brief Checks if there are any negative elements in the array data. * If any element is negative, it returns true; otherwise, it returns false. *
statistics/statistics.c:95
↓ 2 callersFunctionfile_reader_get_position
* @brief Gets the current position of the file pointer. * * This function returns the current position of the file pointer in the file associated wi
file_io/file_reader.c:143
↓ 2 callersFunctionfile_writer_flush
* @brief Flushes the buffer of the `FileWriter`, ensuring all written data is stored in the file. * * This function flushes any buffered data, forci
file_io/file_writer.c:487
↓ 2 callersFunctionfile_writer_get_position
* @brief Gets the current position of the file pointer. * * This function returns the current position of the file pointer in the file associated wi
file_io/file_writer.c:258
↓ 2 callersFunctionfile_writer_get_size
* @brief Retrieves the current size of the file associated with the `FileWriter`. * * This function flushes any pending write operations, moves the
file_io/file_writer.c:800
↓ 2 callersFunctionfirst_wday_of
date/date.c:103
↓ 2 callersFunctionflist_compare_values
Helper function for comparing node values
forward_list/forward_list.c:1021
↓ 2 callersFunctionformat_string
* @brief Formats a string value into a JSON-formatted string. * * This function wraps the given string value in double quotes and appends it to the
json/json.c:1075
↓ 2 callersFunctionforward_list_clear
* @brief Removes all elements from the ForwardList. * * This function clears the `list` by deallocating the memory of all its nodes, effectively *
forward_list/forward_list.c:239
↓ 2 callersFunctionforward_list_is_less
* @brief Compares two ForwardLists to determine if the first list is lexicographically less than the second. * * This function checks if the elemen
forward_list/forward_list.c:1038
↓ 2 callersFunctionforward_list_push_front
* @brief Adds a new element to the front of the ForwardList. * * This function creates a new node with the provided `value` and inserts it at the *
forward_list/forward_list.c:155
↓ 2 callersFunctionget_color_from_hex
turtle/turtle.c:15
↓ 2 callersFunctionget_last_dir_name_win
dir/dir.c:33
↓ 2 callersFunctionget_sock_address
network/tcp.c:1946
↓ 2 callersFunctiongregorian_to_jdn
date/date.c:831
↓ 2 callersFunctionhandle_is_open_win
On Windows an OPEN port has a valid HANDLE; the field is set to * NULL/INVALID_HANDLE_VALUE when closed. */
serial_port/serial_port.c:33
↓ 2 callersFunctionhashmap_at
* @brief Look up the value associated with @p key. * * Read-only: the map is unchanged. Returns NULL if the key is missing * or any argument is NUL
hashmap/hashmap.c:568
↓ 2 callersFunctionhashmap_count
* @brief Multiplicity of @p key. * * Since this is a uniquely-keyed map, the return value is 0 or 1. */
hashmap/hashmap.c:883
↓ 2 callersFunctionhashmap_create_with_buckets
* @brief Create a HashMap with a caller-specified initial bucket count. * * The actual bucket count is `hmap_next_prime(max(initial_bucket_count, 1)
hashmap/hashmap.c:415
↓ 2 callersFunctionhashmap_rehash
* @brief Resize the bucket array to @p bucket_count slots. * * Splices existing nodes (no malloc/free of value memory) into a * freshly-allocated b
hashmap/hashmap.c:1170
↓ 2 callersFunctionhmap_find_next_occupied_bucket
Find the next non-empty bucket at or after start_index (bucket_count = end).
hashmap/hashmap.c:209
↓ 2 callersFunctionhmap_teardown_nodes
Walk every live entry to run the optional key/value deallocators, then release all node memory in one O(slabs) sweep. Only walks when a deallocator is
hashmap/hashmap.c:171
↓ 2 callersFunctionhp_handle_request_to
* @brief Process a single request from an already-accepted client socket. * * Reads the FULL request (looped read of headers + Content-Length / chun
network/http.c:1578
↓ 2 callersFunctionhp_parse_clen
Strict RFC-7230 Content-Length parse: 1*DIGIT, overflow-checked. -1 on miss. */
network/http.c:107
↓ 2 callersFunctionhp_read_full_request_to
* @brief Read one complete HTTP request off a connected socket (timeout-aware). * * See the header contract. Loops `tcp_recv` until the full header
network/http.c:1374
↓ 2 callersFunctionhttp_free_request
* @brief Release every allocation owned by an `HttpRequest`. * * Frees the path, body, parsed JSON tree, all header name/value strings, * all query
network/http.c:655
↓ 2 callersFunctionhttp_free_response
* @brief Release every allocation owned by an `HttpResponse`. * * Frees the status message, JSON tree, body, and all header strings, then * zeroes
network/http.c:980
↓ 2 callersFunctionhttp_get_header_ci
* @brief Case-insensitive header lookup. * * Like `http_get_header`, but matches @p name case-insensitively, as required * by RFC 7230 §3.2 (HTTP h
network/http.c:2250
↓ 2 callersFunctionhttp_parse_request_ex
* @brief Parse a raw HTTP request into an `HttpRequest` struct. * * Extracts the method, path, query parameters, headers, and body. If the * body's
network/http.c:483
↓ 2 callersFunctionhttp_response_free
* @brief Free a heap-allocated HttpResponse, contents and struct. * * Releases everything owned by the response (via http_free_response) and then *
network/http.c:2727
↓ 2 callersFunctionhttp_serialize_response_ex
* @brief Serialize a response into a freshly-allocated HTTP/1.1 wire-format * buffer. Caller must `free()` the result. * * Computes the exac
network/http.c:812
↓ 2 callersFunctionhttp_status_text
* @brief Default reason phrase for a numeric HTTP status code. * * Covers the codes a typical server returns (1xx informational, 2xx * success, 3xx
network/http.c:1770
↓ 2 callersFunctioninitialize_ssl_mappings
Initialize the SSL mappings
network/tcp.c:47
↓ 2 callersFunctionis_right_associative
Returns whether the operator is right-associative. (Only exponentiation is.) */
evalexpr/evalexpr.c:29
↓ 2 callersFunctionjwt_ec_coord_len
* @brief Per-curve coordinate byte length (= raw sig len / 2). */
jwt/jwt.c:235
↓ 2 callersFunctionjwt_evp_md_for
Returns the OpenSSL EVP_MD for the digest portion of `a`, or NULL for JWT_ALG_NONE / unsupported algorithms. */
jwt/jwt.c:194
↓ 2 callersFunctionjwt_key_ec_from_bio
Common helper for the two EC-from-PEM builders. */
jwt/jwt.c:625
↓ 2 callersFunctionjwt_key_rsa_from_bio
Common helper for the two RSA-from-PEM builders. */
jwt/jwt.c:478
↓ 2 callersFunctionjwt_verify
* @brief Verify a decoded token against a key + validation options. * * Performs (in order): * 1. Algorithm allow-list check (rejects unsupported
jwt/jwt.c:2003
↓ 2 callersFunctionlist_clear
* @brief Clears all elements from the list. * * This function removes all elements from the list and frees the memory associated with each node *
list/list.c:620
↓ 2 callersFunctionlist_is_less
* @brief Checks if the first list is lexicographically less than the second list. * * This function compares two lists element by element. It retur
list/list.c:1254
↓ 2 callersFunctionmap_create
* @brief Creates a new map with the specified comparison and deallocation functions. * * This function initializes a new map with the provided compa
map/map.c:602
↓ 2 callersFunctionmap_node_get_key
* @brief Retrieves the key from the given map node. * * @param node A pointer to the MapNode from which to retrieve the key. * @return The key stor
map/map.c:1586
↓ 2 callersFunctionmap_node_get_value
* @brief Retrieves the value from the given map node. * * @param node A pointer to the MapNode from which to retrieve the value. * @return The valu
map/map.c:1603
↓ 2 callersFunctionmat_check_diagonal
matrix/matrix.c:571
↓ 2 callersFunctionmat_csub
matrix/matrix.c:9057
↓ 2 callersFunctionmat_gcd_ll
Euclidean GCD of two (already integer-valued) magnitudes. */
matrix/matrix.c:10773
← previousnext →301–400 of 2,651, ranked by callers