Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KaisenAmin/c_std
/ functions
Functions
2,651 in github.com/KaisenAmin/c_std
⨍
Functions
2,651
◇
Types & classes
138
↓ 1 callers
Function
get_sysinfo_disk_space_linux
sysinfo/sysinfo.c:1307
↓ 1 callers
Function
get_sysinfo_disk_space_windows
sysinfo/sysinfo.c:1057
↓ 1 callers
Function
get_sysinfo_list_bluetooth_devices_linux
sysinfo/sysinfo.c:579
↓ 1 callers
Function
get_sysinfo_list_bluetooth_devices_windows
sysinfo/sysinfo.c:269
↓ 1 callers
Function
get_sysinfo_memory_usage_linux
Linux specific memory usage function
sysinfo/sysinfo.c:1270
↓ 1 callers
Function
get_sysinfo_memory_usage_windows
Windows specific memory usage function
sysinfo/sysinfo.c:1031
↓ 1 callers
Function
get_sysinfo_system_uptime_linux
sysinfo/sysinfo.c:1341
↓ 1 callers
Function
get_sysinfo_system_uptime_windows
Simpler Windows-specific function to get system uptime
sysinfo/sysinfo.c:1084
↓ 1 callers
Function
get_unknown_boot_unique_id
sysinfo/sysinfo.c:655
↓ 1 callers
Function
get_unknown_build_abi
sysinfo/sysinfo.c:687
↓ 1 callers
Function
get_unknown_cpu_architecture
sysinfo/sysinfo.c:663
↓ 1 callers
Function
get_unknown_kernel_type
sysinfo/sysinfo.c:647
↓ 1 callers
Function
get_unknown_kernel_version
sysinfo/sysinfo.c:639
↓ 1 callers
Function
get_unknown_machine_host_name
sysinfo/sysinfo.c:671
↓ 1 callers
Function
get_unknown_machine_unique_id
sysinfo/sysinfo.c:679
↓ 1 callers
Function
get_unknown_product_type
sysinfo/sysinfo.c:631
↓ 1 callers
Function
get_unknown_version
sysinfo/sysinfo.c:623
↓ 1 callers
Function
get_windows_boot_unique_id
sysinfo/sysinfo.c:106
↓ 1 callers
Function
get_windows_build_abi
sysinfo/sysinfo.c:253
↓ 1 callers
Function
get_windows_cpu_architecture
sysinfo/sysinfo.c:120
↓ 1 callers
Function
get_windows_kernel_type
sysinfo/sysinfo.c:98
↓ 1 callers
Function
get_windows_kernel_version
sysinfo/sysinfo.c:76
↓ 1 callers
Function
get_windows_machine_host_name
sysinfo/sysinfo.c:152
↓ 1 callers
Function
get_windows_machine_unique_id
sysinfo/sysinfo.c:175
↓ 1 callers
Function
get_windows_pretty_version
sysinfo/sysinfo.c:201
↓ 1 callers
Function
get_windows_product_type
sysinfo/sysinfo.c:69
↓ 1 callers
Function
get_windows_version
sysinfo/sysinfo.c:43
↓ 1 callers
Function
handle_request
network/http.c:345
↓ 1 callers
Function
hashmap_equal
* @brief Set-equality: same number of entries AND every key in @p map1 * is present in @p map2. * * @note Values are NOT compared — only key
hashmap/hashmap.c:1272
↓ 1 callers
Function
hashmap_load_factor
* @brief Current load factor `size / bucket_count`. * @return 0.0 on NULL map / 0 buckets. */
hashmap/hashmap.c:1106
↓ 1 callers
Function
hashmap_max_load_factor
* @brief Configured maximum load factor (default 0.75). * * When `load_factor >= max_load_factor`, the next `hashmap_insert` * triggers a rehash.
hashmap/hashmap.c:1126
↓ 1 callers
Function
hmap_create_node
Helper function to create a new node (carved from the per-map pool)
hashmap/hashmap.c:133
↓ 1 callers
Function
hmap_free_node
hashmap/hashmap.c:150
↓ 1 callers
Function
hmap_pool_alloc
hashmap/hashmap.c:45
↓ 1 callers
Function
hmap_pool_destroy
Release every slab (used on clear / deallocate). O(number of slabs). */
hashmap/hashmap.c:90
↓ 1 callers
Function
hmap_pool_free
Return a node's slot to the free-list for reuse (used on erase). */
hashmap/hashmap.c:83
↓ 1 callers
Function
hp_ascii_ieq
Case-insensitive (ASCII) comparison of two NUL-terminated strings. */
network/http.c:2219
↓ 1 callers
Function
hp_send_all_to
Send the whole buffer, but first (when timeout_ms > 0) make sure the peer is * actually draining: if it isn't writable within timeout_ms, give up rat
network/http.c:1352
↓ 1 callers
Function
hp_serve_conn
Worker-thread entry point: serve exactly one connection to completion under a * per-read idle timeout (slow-loris defense), then close and free. Runs
network/http.c:1051
↓ 1 callers
Function
http_get_header
* @brief Find a header value on a parsed request by name (case-sensitive). * * @param req Request to search. NULL → NULL. * @param name Header nam
network/http.c:1659
↓ 1 callers
Function
http_parse_method
* @brief Identify the HTTP method at the start of a raw request line. * * Compares the leading verb of `request` against the supported method * nam
network/http.c:428
↓ 1 callers
Function
http_parse_response
* @brief Parse a full HTTP response (status line + headers + de-framed body) * into a heap HttpResponse. See the header contract. * * @param
network/http.c:2588
↓ 1 callers
Function
http_set_html_body
* @brief Attach an HTML body to the response. * * Equivalent to `http_set_body` but appends * `Content-Type: text/html; charset=utf-8` instead of `
network/http.c:1981
↓ 1 callers
Function
http_start_server_ex
* @brief Start the HTTP server on the given port, returning the bind status. * * Binds to `0.0.0.0:port` with `SO_REUSEADDR`, listens, and serves re
network/http.c:1083
↓ 1 callers
Function
http_url_parse
* @brief Parse scheme://[userinfo@]host[:port][/path][?query][#fragment]. * See the header contract. On any error frees partial state and zero
network/http.c:2416
↓ 1 callers
Function
init_global_memory_pool
string/std_string.c:186
↓ 1 callers
Function
is_operator
Returns whether the character is a valid operator. */
evalexpr/evalexpr.c:35
↓ 1 callers
Function
json_add_to_array
* @brief Adds an element to a JSON array. * * @param element1 The JSON array to which the element will be added. Must be of type JSON_ARRAY. * @pa
json/json.c:2810
↓ 1 callers
Function
json_type_of_element
* @brief Returns the type of a JSON element. * * @param element The JSON element whose type is to be determined. * @return The type of the JSON el
json/json.c:1659
↓ 1 callers
Function
jsonp_find_in_array
* @brief Iterates through a JSON array to find an element that matches a given predicate. * @return True if a matching element is found, otherwise fa
json/json.c:292
↓ 1 callers
Function
jsonp_find_in_object
* @brief Iterates through a JSON object to find an element that matches a given predicate. * @return True if a matching element is found, otherwise f
json/json.c:257
↓ 1 callers
Function
jsonp_print_internal
json/json.c:91
↓ 1 callers
Function
jwks_build_entry
Build a single JwksEntry from a parsed JWK object. Returns false (and leaves *out untouched) if the entry should be skipped — e.g. unknown kty,
jwt/jwt.c:901
↓ 1 callers
Function
jwks_make_ec_pubkey
Build an EC public EVP_PKEY from the curve name (e.g. "P-256") plus raw X and Y coordinates. */
jwt/jwt.c:828
↓ 1 callers
Function
jwks_make_rsa_pubkey
Build an RSA public EVP_PKEY from raw modulus + exponent bytes. Uses OpenSSL 3.x's OSSL_PARAM_BLD API; on older OpenSSL falls back to the deprec
jwt/jwt.c:777
↓ 1 callers
Function
jwks_reserve
Grow the entries array geometrically. */
jwt/jwt.c:1002
↓ 1 callers
Function
jwt_alg_allowed
Is `alg` in opts->allowed_algs? */
jwt/jwt.c:1952
↓ 1 callers
Function
jwt_alg_from_string
* @brief Parse a JWT algorithm name string into the enum. * * Recognizes "none", "HS256", "HS384", "HS512", "RS256", "RS384", * "RS512" (case-sensi
jwt/jwt.c:332
↓ 1 callers
Function
jwt_audience_matches
Does the token's audience set contain `expected`? `aud` may be a JSON string or a JSON array of strings. */
jwt/jwt.c:1961
↓ 1 callers
Function
jwt_decode_and_verify_with_keys
* @brief Decode + verify against an ordered list of candidate keys. * * Designed for key rotation. The verifier walks `keys` in order; for * each n
jwt/jwt.c:2281
↓ 1 callers
Function
jwt_ecdsa_der_to_raw
* @brief Convert an OpenSSL DER-encoded ECDSA_SIG to JWS raw R||S form. * * JWS (RFC 7515) wants ECDSA signatures as the fixed-length concatenation
jwt/jwt.c:1443
↓ 1 callers
Function
jwt_ecdsa_raw_to_der
* @brief Convert a JWS raw R||S signature back to OpenSSL DER form. * * Inverse of jwt_ecdsa_der_to_raw. The two halves are interpreted as * big-en
jwt/jwt.c:1487
↓ 1 callers
Function
jwt_get_header_string
* @brief Fetch a header parameter (e.g. `kid`) by name. NULL if absent. */
jwt/jwt.c:2552
↓ 1 callers
Function
jwt_hmac_min_key_len
* @brief Minimum HMAC secret length recommended by RFC 7518 §3.2 for an alg. * * RFC 7518 mandates that the HMAC key length be at least the digest
jwt/jwt.c:245
↓ 1 callers
Function
jwt_key_deallocate
* @brief Release a JwtKey and zero its sensitive bytes. * * HMAC secrets are wiped with `OPENSSL_cleanse` before `free()` so they * don't linger on
jwt/jwt.c:734
↓ 1 callers
Function
jwt_key_ec_private_pem
* @brief Load an EC private key from a PEM-formatted memory buffer. * * Accepts both SEC1 (`-----BEGIN EC PRIVATE KEY-----`) and PKCS#8 * (`-----BE
jwt/jwt.c:664
↓ 1 callers
Function
jwt_key_ec_public_pem
* @brief Load an EC public key from a PEM-formatted memory buffer. * * Accepts the SubjectPublicKeyInfo envelope (`-----BEGIN PUBLIC KEY-----`). *
jwt/jwt.c:686
↓ 1 callers
Function
jwt_key_hmac
* @brief Build an HMAC signing/verification key from raw secret bytes. * * The same key object is usable for both signing and verification. The * s
jwt/jwt.c:453
↓ 1 callers
Function
jwt_key_rsa_private_pem
* @brief Load an RSA private key from a PEM-formatted memory buffer. * * Accepts both PKCS#1 (`-----BEGIN RSA PRIVATE KEY-----`) and PKCS#8 * (`---
jwt/jwt.c:517
↓ 1 callers
Function
jwt_key_rsa_public_pem
* @brief Load an RSA public key from a PEM-formatted memory buffer. * * Accepts the SubjectPublicKeyInfo form (`-----BEGIN PUBLIC KEY-----`). * Use
jwt/jwt.c:543
↓ 1 callers
Function
jwt_key_shape_matches_alg
Returns true if `key` is at least the right SHAPE for `alg`. This is not "the key will verify" — that's signature work — it's "trying this key i
jwt/jwt.c:2245
↓ 1 callers
Function
jwt_keyset_deallocate
* @brief Release the keyset and every key inside it. * * NULL is a safe no-op. * * @param set Set to release. */
jwt/jwt.c:1148
↓ 1 callers
Function
jwt_keyset_from_json
* @brief Parse a JWKS document into a `JwtKeySet`. * * The input is the JSON object an OIDC IdP publishes at its * `/.well-known/jwks.json` endpoin
jwt/jwt.c:1036
↓ 1 callers
Function
jwt_keyset_lookup
* @brief Look up a key by its `kid`. Returns a borrowed pointer. * * The returned pointer is owned by the set — do NOT call * `jwt_key_deallocate`
jwt/jwt.c:1111
↓ 1 callers
Function
jwt_obj_set_bool
jwt/jwt.c:1238
↓ 1 callers
Function
jwt_sign
Sign the signing input with the supplied key + algorithm. On success, writes a malloc'd signature buffer to *sig (caller frees) and its length t
jwt/jwt.c:1523
↓ 1 callers
Function
jwt_status_to_string
* @brief Human-readable label for a `JwtStatus` code. * * Returns a static string (`"JWT_SUCCESS"`, `"JWT_ERR_EXPIRED"`, …) * suitable for logs. Un
jwt/jwt.c:267
↓ 1 callers
Function
jwt_verify_signature
Verify the signature using the verification key. Returns true if the signature is valid. */
jwt/jwt.c:1628
↓ 1 callers
Function
list_is_greater
* @brief Checks if the first list is lexicographically greater than the second list. * * @param list1 Pointer to the first list. * @param list2 Po
list/list.c:1290
↓ 1 callers
Function
list_pop_back
* @brief Removes the last element from the list. * * This function removes the last element from the list. If the list is empty, it returns without
list/list.c:584
↓ 1 callers
Function
list_push_front
* @brief Adds a new element to the front of the list. * * This function creates a new node and adds it to the front of the list. The new node contai
list/list.c:472
↓ 1 callers
Function
logp_format_timestamp
Thread-safe local timestamp ("YYYY-MM-DD HH:MM:SS"). Uses the reentrant * localtime_r / localtime_s rather than localtime(), whose shared static * `
log/log.c:37
↓ 1 callers
Function
map_deallocate
* @brief Deallocates the memory used by the map and its nodes. * * This function frees all the memory associated with the map, including all of its
map/map.c:641
↓ 1 callers
Function
map_erase
* @brief Erases an element from the map by its key. * * This function removes the element with the specified key from the map. If the key is not fou
map/map.c:1124
↓ 1 callers
Function
map_lower_bound
* @brief Finds the first element that is not less than the given key. * * This function searches the map for the first element whose key is not less
map/map.c:1467
↓ 1 callers
Function
map_upper_bound
* @brief Finds the first element that is greater than the given key. * * This function searches the map for the first element whose key is greater t
map/map.c:1512
↓ 1 callers
Function
mat_cabs
matrix/matrix.c:9070
↓ 1 callers
Function
mat_cadd
matrix/matrix.c:9053
↓ 1 callers
Function
mat_cdiv
matrix/matrix.c:9065
↓ 1 callers
Function
matrix_adjugate
* @brief Computes the adjugate (also known as adjoint) of a square matrix. * * The adjugate of a matrix is the transpose of its cofactor matrix. Thi
matrix/matrix.c:5253
↓ 1 callers
Function
matrix_cholesky_decomposition
* @brief Performs the Cholesky decomposition of a positive definite matrix. * * This function decomposes a positive definite matrix into a lower tri
matrix/matrix.c:6060
↓ 1 callers
Function
matrix_cov
* @brief Estimates the covariance matrix of a set of observations. * * The C analogue of NumPy's `numpy.cov(M)` with the defaults `rowvar=True` and
matrix/matrix.c:4252
↓ 1 callers
Function
matrix_hstack
* @brief Concatenates two matrices horizontally (side by side). * * The C analogue of NumPy's `numpy.hstack((A, B))` for 2-D arrays: places `B` to
matrix/matrix.c:3457
↓ 1 callers
Function
matrix_infinity_norm
* @brief Computes the infinity norm of a matrix. * * The infinity norm, also known as the maximum row sum norm, is calculated as the maximum of the
matrix/matrix.c:6366
↓ 1 callers
Function
matrix_is_identity
* @brief Checks if a matrix is an identity matrix. * * An identity matrix is a square matrix with 1's on the main diagonal and 0's elsewhere. * *
matrix/matrix.c:2735
↓ 1 callers
Function
matrix_qr_decomposition
* @brief Performs QR decomposition of a matrix. * * This function decomposes a given matrix into two matrices: * an orthogonal matrix `Q` and an u
matrix/matrix.c:6187
↓ 1 callers
Function
matrix_row_divide
* @brief Divides all elements in a row by a scalar. * * This function divides each element in a specified row of the matrix by a given scalar value.
matrix/matrix.c:218
↓ 1 callers
Function
matrix_row_subtract
* @brief Subtracts a scaled row from another row. * * This function subtracts a scaled version of one row from another row in the matrix. * * @par
matrix/matrix.c:246
↓ 1 callers
Function
matrix_size
* @brief Returns the total number of elements in a matrix. * * This function calculates the size of the matrix, defined as the product * of its ro
matrix/matrix.c:9774
↓ 1 callers
Function
matrix_sum
* @brief Sums every element of a matrix. * * The C analogue of NumPy's `numpy.sum(M)`: returns the sum of all elements. * For a per-axis reduction
matrix/matrix.c:6823
← previous
next →
601–700 of 2,651, ranked by callers