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
condition_timedwait
* Waits for a condition variable to be signaled, with a timeout. * * Blocks the calling thread until the specified condition variable is signaled *
concurrent/concurrent.c:790
↓ 1 callers
Function
config_create
* @brief Creates a ConfigFile structure by reading the specified configuration file. * * This function opens a configuration file, reads its content
config/config.c:95
↓ 1 callers
Function
crypto_aes_gcm_decrypt
* @brief AES-GCM authenticated decryption. Returns NULL if the tag does not * verify (tampering / wrong key / wrong AAD). See the header contr
crypto/crypto.c:1611
↓ 1 callers
Function
crypto_aes_gcm_encrypt
* @brief AES-GCM authenticated encryption. Writes a tag_len-byte tag to `tag`. * See the header contract. * * @param plaintext Bytes to encr
crypto/crypto.c:1579
↓ 1 callers
Function
crypto_constant_time_equal
* @brief Constant-time byte-equality. * * Compares `length` bytes from `a` and `b` and returns `true` iff * every byte matches. The runtime does NO
crypto/crypto.c:874
↓ 1 callers
Function
crypto_des_decrypt
* @brief Decrypts ciphertext using the DES (Data Encryption Standard) algorithm. * * This function decrypts the provided ciphertext using DES with t
crypto/crypto.c:416
↓ 1 callers
Function
crypto_des_encrypt
* @brief Encrypts plaintext using the DES (Data Encryption Standard) algorithm. * * This function encrypts the provided plaintext using DES with the
crypto/crypto.c:306
↓ 1 callers
Function
crypto_hash_data
* @brief Computes a cryptographic hash of the provided data using the specified algorithm. * * This function takes input data and computes its hash
crypto/crypto.c:45
↓ 1 callers
Function
crypto_hmac
* @brief Compute an HMAC (Hash-based Message Authentication Code). * * HMAC is the standard primitive for symmetric-key message * authentication. P
crypto/crypto.c:822
↓ 1 callers
Function
csv_file_export_to_string_rfc4180
* @brief Serialize the whole file to a malloc'd string with RFC 4180 quoting. * * Like `csv_file_export_to_string`, but any cell that contains the
csv/csv.c:1600
↓ 1 callers
Function
csv_file_find_column_index
* @brief Find the index of the column whose header equals `columnName`. * * The header is the first row of `file`. Comparison is case-sensitive * a
csv/csv.c:1054
↓ 1 callers
Function
csv_file_load_from_string_rfc4180
* @brief Parse an in-memory CSV document with full RFC 4180 semantics. * * A proper state-machine parser (not line-by-line), so it correctly * hand
csv/csv.c:1707
↓ 1 callers
Function
csvp_append_quoted_field
Append `field` to the output buffer, RFC 4180-encoded: wrapped in * double quotes (with every internal quote doubled) only when needed. */
csv/csv.c:1559
↓ 1 callers
Function
csvp_field_needs_quote
True if `s` must be quoted under RFC 4180 for the given delimiter: it * contains the delimiter, a double quote, CR, or LF. */
csv/csv.c:1548
↓ 1 callers
Function
custom_destroy
variant/variant.c:49
↓ 1 callers
Function
date_from_julian_day
* @brief Creates a Date object from a Julian Day Number. * * This function converts a Julian Day Number (JDN) to the corresponding date in the Grego
date/date.c:1899
↓ 1 callers
Function
date_is_greater_than
* @brief Compares two dates to check if the first is greater than the second. * * This function compares two Date objects and determines if the firs
date/date.c:1515
↓ 1 callers
Function
date_is_leap_year
* @brief Checks if the year of a given Date object is a leap year. * * This function determines if the year of the provided Date object is a leap ye
date/date.c:1604
↓ 1 callers
Function
date_is_less_than
* @brief Compares two dates to check if the first is less than the second. * * This function compares two Date objects and determines if the first d
date/date.c:1472
↓ 1 callers
Function
decode_char
* This function decodes a single Base32 character. If the character is between 'A' and 'Z', * it returns a value between 0 and 25. If the character
encoding/encoding.c:569
↓ 1 callers
Function
decode_sequence
encoding/encoding.c:674
↓ 1 callers
Function
deque_begin
* @brief Returns an iterator to the beginning of the deque. * * This function returns an iterator pointing to the first element in the deque. * If
deque/deque.c:995
↓ 1 callers
Function
deque_end
* @brief Returns an iterator to the end of the deque. * * This function returns an iterator pointing to the position just past the last element * i
deque/deque.c:1026
↓ 1 callers
Function
deque_insert
* @brief Inserts an element at a specified index in the deque. * * This function inserts a new element at the specified index in the deque. * If ne
deque/deque.c:475
↓ 1 callers
Function
deque_is_equal
* @brief Compares two deques for equality. * * This function checks whether two deques are equal, which means they have the * same number of elemen
deque/deque.c:835
↓ 1 callers
Function
deque_pop_back
* @brief Removes the back element from the deque. * * This function removes the back element from the deque. * If the deque becomes empty, the back
deque/deque.c:288
↓ 1 callers
Function
deque_rbegin
* @brief Returns a reverse iterator pointing to the last element in the deque. * * This function initializes a reverse iterator that points to the l
deque/deque.c:1055
↓ 1 callers
Function
deque_rend
* @brief Returns a reverse iterator pointing to the position before the first element in the deque. * * This function initializes a reverse iterator
deque/deque.c:1091
↓ 1 callers
Function
dir_base_name
* @brief Returns the final component (basename) of a path. * * Behavior: * - `"C:/foo/bar.txt"` → `"bar.txt"` * - `"/usr/local/"` → `"local
dir/dir.c:2620
↓ 1 callers
Function
dir_cd
* @brief Changes the current working directory. * * @param dirName The name of the directory to change to. * @return `true` if the directory was su
dir/dir.c:729
↓ 1 callers
Function
dir_get_size_posix
dir/dir.c:335
↓ 1 callers
Function
dir_get_size_win
dir/dir.c:133
↓ 1 callers
Function
dir_is_directory
* @brief Checks if the specified path is a directory. * * @param filePath The path to check. * @return `true` if the path is a directory, `false` o
dir/dir.c:1472
↓ 1 callers
Function
dir_is_directory_exists
* @brief Checks if a directory exists at the specified path. * * @param dirPath The path of the directory to check. * @return `true` if the directo
dir/dir.c:981
↓ 1 callers
Function
dir_is_empty
* @brief Checks if a directory is empty. * * @param dirName The name of the directory to check. * @return `true` if the directory is empty, `false`
dir/dir.c:834
↓ 1 callers
Function
dir_join_path
* @brief Joins two path segments with the platform separator. * * Behavior: * - `a` is NULL or empty → returns a copy of `b` (or `""` if `b` is
dir/dir.c:2554
↓ 1 callers
Function
dir_list_contents
* @brief Lists the contents of a directory based on the specified option. * * @param dirPath The path of the directory to list. * @param option The
dir/dir.c:1391
↓ 1 callers
Function
dir_list_contents_posix
dir/dir.c:398
↓ 1 callers
Function
dir_list_contents_win
dir/dir.c:207
↓ 1 callers
Function
dir_list_recursive_impl
Walk into a directory and append every entry matching the option, * with paths prefixed by the directory being walked. */
dir/dir.c:3032
↓ 1 callers
Function
dir_make_directory
* @brief Creates a directory at the specified path. * * @param dirpath The path of the directory to create. * @return `true` if the directory was s
dir/dir.c:471
↓ 1 callers
Function
dll_merge
list/list.c:61
↓ 1 callers
Function
dll_merge_sort
Top-down merge sort over a `next`-linked chain. O(n log n), stable, * recursion depth O(log n) (~30 for a billion nodes). Returns the new head; * th
list/list.c:101
↓ 1 callers
Function
dll_split
Split a `next`-linked chain into two halves via slow/fast pointers, * returning the head of the second half (first half is NUL-terminated). */
list/list.c:84
↓ 1 callers
Function
encoding_base16_decode_ex
* @brief Decode Base16 (hex), also reporting the exact decoded byte count. * * Identical to `encoding_base16_decode` but writes the number of decode
encoding/encoding.c:1171
↓ 1 callers
Function
encoding_base32_decode_ex
* @brief Decode Base32, also reporting the exact decoded byte count. * * Identical to `encoding_base32_decode` but writes the number of decoded byte
encoding/encoding.c:1059
↓ 1 callers
Function
encoding_base64_decode_ex
* @brief Decode Base64, also reporting the exact decoded byte count. * * Identical to `encoding_base64_decode` but writes the number of decoded byte
encoding/encoding.c:772
↓ 1 callers
Function
encoding_utf16_to_utf8
* @brief Converts a UTF-16 encoded string to a UTF-8 encoded string. * * This function converts a string from UTF-16 encoding to UTF-8 encoding. *
encoding/encoding.c:1409
↓ 1 callers
Function
eval_expr
* Evaluates an arithmetic expression given as a null‐terminated string. * * The expression may include numbers (integer or floating point), the oper
evalexpr/evalexpr.c:387
↓ 1 callers
Function
ezxml_add_child
Adds a child tag. off is the offset of the child tag relative to the start of the parent tag's character content. Returns the child tag.
xml/xml.c:1036
↓ 1 callers
Function
ezxml_child
returns the first child tag with the given name or NULL if not found
xml/xml.c:165
↓ 1 callers
Function
ezxml_cut
removes a tag along with its subtags without freeing its memory
xml/xml.c:1143
↓ 1 callers
Function
ezxml_document_root
xml/xml.c:1194
↓ 1 callers
Function
ezxml_ent_ok
checks for circular entity references, returns non-zero if no circular references are found, zero otherwise
xml/xml.c:355
↓ 1 callers
Function
ezxml_error
return parser error message or empty string if none
xml/xml.c:955
↓ 1 callers
Function
ezxml_internal_dtd
called when the parser finds an internal doctype subset
xml/xml.c:412
↓ 1 callers
Function
ezxml_parse_file
a wrapper for ezxml_parse_fd that accepts a file name
xml/xml.c:775
↓ 1 callers
Function
ezxml_parse_fp
Wrapper for ezxml_parse_str() that accepts a file stream. Reads the entire stream into memory and then parses it. For xml files, use ezxml_parse_file(
xml/xml.c:711
↓ 1 callers
Function
ezxml_pi
returns a null terminated array of processing instructions for the given
xml/xml.c:198
↓ 1 callers
Function
ezxml_set_flag
sets a flag for the given tag and returns the tag
xml/xml.c:1134
↓ 1 callers
Function
ezxml_str2utf8
Converts a UTF-16 string to UTF-8. Returns a new string that must be freed or NULL if no conversion was needed.
xml/xml.c:516
↓ 1 callers
Function
ezxml_toxml_r
Recursively converts each tag to xml appending it to *s. Reallocates *s if its length excedes max. start is the location of the previous tag in the pa
xml/xml.c:812
↓ 1 callers
Function
file_reader_eof
* @brief Checks if the end of the file has been reached. * * This function checks if the end of the file associated with the `FileReader` structure
file_io/file_reader.c:287
↓ 1 callers
Function
file_reader_is_open
* @brief Checks if the file is open. * * This function checks if the file associated with the `FileReader` structure is open. * * @param reader A
file_io/file_reader.c:169
↓ 1 callers
Function
file_reader_read_all
* @brief Read everything from the current position to EOF into one buffer. * * Allocates a buffer sized to the remaining bytes, reads them in a sing
file_io/file_reader.c:413
↓ 1 callers
Function
file_writer_is_open
* @brief Checks if the file associated with the `FileWriter` is currently open. * * This function verifies whether the file managed by the `FileWrit
file_io/file_writer.c:463
↓ 1 callers
Function
flist_merge_sort
Recursive merge sort implementation
forward_list/forward_list.c:105
↓ 1 callers
Function
flist_merge_two
Merge two sorted lists
forward_list/forward_list.c:73
↓ 1 callers
Function
flist_split
Helper function to split the list into two halves
forward_list/forward_list.c:50
↓ 1 callers
Function
format_array
* @brief Formats a JSON array into a pretty-printed JSON-formatted string. * * This function converts a JSON array into its formatted JSON string r
json/json.c:1093
↓ 1 callers
Function
format_object
* @brief Formats a JSON object into a pretty-printed JSON-formatted string. * * This function converts a JSON object into its formatted JSON string
json/json.c:1120
↓ 1 callers
Function
forward_list_emplace_front
* @brief Constructs an element in place after the specified position in the ForwardList. * * This function constructs a new element in place after t
forward_list/forward_list.c:449
↓ 1 callers
Function
forward_list_is_greater
* @brief Compares two ForwardLists to determine if the first list is lexicographically greater than the second. * * This function checks if the ele
forward_list/forward_list.c:1072
↓ 1 callers
Function
forward_list_reverse
* @brief Reverses the order of elements in the ForwardList. * * This function reverses the order of elements in the ForwardList. The list is * mo
forward_list/forward_list.c:996
↓ 1 callers
Function
fromzone
date/date.c:109
↓ 1 callers
Function
generateWalshMatrixRecursively
function to generate the Walsh matrix recursively
matrix/matrix.c:32
↓ 1 callers
Function
get_baud_rate_constant
Translate an integer baud rate to the matching termios B* constant. */
serial_port/serial_port.c:391
↓ 1 callers
Function
get_disk_partitions_linux
sysinfo/sysinfo.c:1529
↓ 1 callers
Function
get_disk_partitions_windows
sysinfo/sysinfo.c:1188
↓ 1 callers
Function
get_file_size_posix
dir/dir.c:381
↓ 1 callers
Function
get_file_size_win
dir/dir.c:181
↓ 1 callers
Function
get_full_path_posix
dir/dir.c:265
↓ 1 callers
Function
get_full_path_win
Helper function for Windows to get full path
dir/dir.c:61
↓ 1 callers
Function
get_linux_boot_unique_id
sysinfo/sysinfo.c:442
↓ 1 callers
Function
get_linux_build_abi
sysinfo/sysinfo.c:551
↓ 1 callers
Function
get_linux_cpu_architecture
sysinfo/sysinfo.c:468
↓ 1 callers
Function
get_linux_kernel_type
sysinfo/sysinfo.c:423
↓ 1 callers
Function
get_linux_kernel_version
sysinfo/sysinfo.c:404
↓ 1 callers
Function
get_linux_machine_host_name
sysinfo/sysinfo.c:487
↓ 1 callers
Function
get_linux_machine_unique_id
sysinfo/sysinfo.c:527
↓ 1 callers
Function
get_linux_product_type
sysinfo/sysinfo.c:371
↓ 1 callers
Function
get_linux_version
sysinfo/sysinfo.c:345
↓ 1 callers
Function
get_octet
* Given a block id between 0 and 7 inclusive, this will return the index of * the octet in which this block starts. For example, given 3 it will retu
encoding/encoding.c:601
↓ 1 callers
Function
get_offset
* Given a block id between 0 and 7 inclusive, this will return how many bits * we can drop at the end of the octet in which this block starts. * Fo
encoding/encoding.c:629
↓ 1 callers
Function
get_open_ports_linux
sysinfo/sysinfo.c:1403
↓ 1 callers
Function
get_open_ports_windows
sysinfo/sysinfo.c:1151
↓ 1 callers
Function
get_running_services_linux
sysinfo/sysinfo.c:1378
↓ 1 callers
Function
get_running_services_windows
sysinfo/sysinfo.c:1110
↓ 1 callers
Function
get_sysinfo_cpu_usage_linux
Linux specific CPU usage function
sysinfo/sysinfo.c:1225
↓ 1 callers
Function
get_sysinfo_cpu_usage_windows
sysinfo/sysinfo.c:994
← previous
next →
501–600 of 2,651, ranked by callers