MCPcopy Create free account

hub / github.com/KaisenAmin/c_std / functions

Functions2,651 in github.com/KaisenAmin/c_std

Functioncli_validate_option_argument
* @brief Validates an argument provided for a specific CLI option using its custom validator function. * * This function checks if the argument prov
cli/cli.c:1403
Functioncmp_mem_bool
variant/variant.c:1454
Functioncmp_mem_char
variant/variant.c:1449
Functioncmp_mem_double
variant/variant.c:1444
Functioncmp_mem_float
variant/variant.c:1439
Functioncmp_mem_int
variant/variant.c:1429
Functioncmp_mem_long
variant/variant.c:1434
Functioncmp_mem_ptr
variant/variant.c:1459
Functioncmp_mem_string
variant/variant.c:1464
Functioncompare_strings_json
* @brief Compares two strings used as keys in a JSON object. * @return An integer less than, equal to, or greater than zero if `a` is found, respecti
json/json.c:337
Functionconfig_clear
* @brief Drop every section + entry, keeping the ConfigFile shell alive. * * Equivalent to calling `config_remove_section` for every section in * o
config/config.c:1418
Functionconfig_create_empty
* @brief Create an empty ConfigFile with no backing file. * * The counterpart to `config_create`, which requires an existing file on * disk. This b
config/config.c:1556
Functionconfig_get_array
* @brief Retrieves an array of strings for a given key in a specified section. * * This function retrieves the value associated with the given key i
config/config.c:1003
Functionconfig_get_bool
* @brief Retrieves a boolean value for a given key in a specified section, or a default value if the key is not found. * * This function attempts to
config/config.c:754
Functionconfig_get_double
* @brief Retrieves a double value for a given key in a specified section, or a default value if the key is not found. * * This function attempts to
config/config.c:710
Functionconfig_get_encrypted_value
* @brief Retrieves an encrypted value for a given key in a section and decrypts it using the provided encryption key. * * This function looks up the
config/config.c:1114
Functionconfig_get_int
* @brief Retrieves an integer value for a given key in a specified section, or a default value if the key is not found. * * This function attempts t
config/config.c:668
Functionconfig_get_iterator
* @brief Initializes an iterator for traversing the configuration entries. * * This function initializes a ConfigIterator for traversing the entries
config/config.c:827
Functionconfig_has_key
* @brief Checks if a specific key exists within a section. * * This function checks whether a given key exists in the specified section of the confi
config/config.c:630
Functionconfig_has_section
* @brief Checks if a specific section exists in the configuration. * * This function checks whether a given section exists in the configuration file
config/config.c:600
Functionconfig_key_count
* @brief Return the number of key-value entries in a section. * * Comments (lines beginning with `#` or `;`) are NOT counted — only * real `key=val
config/config.c:1220
Functionconfig_list_keys
* @brief Snapshot every key in a section into a malloc'd, NULL-terminated array. * * Comment entries are skipped. Each string is freshly duplicated.
config/config.c:1305
Functionconfig_list_sections
* @brief Snapshot every section name into a malloc'd, NULL-terminated array. * * Each string in the returned array is freshly duplicated. **Caller f
config/config.c:1265
Functionconfig_load_string
* @brief Parse INI text from an in-memory string into an existing config. * * The inverse of `config_to_string`: reads `data` as INI-format text and
config/config.c:1600
Functionconfig_merge
* @brief Merge @p src into @p dest. Keys in @p src override matching keys in @p dest. * * For every key/value entry in @p src, calls `config_set_val
config/config.c:1377
Functionconfig_next_entry
* @brief Iterates to the next entry in the configuration. * * This function advances the iterator to the next entry (key-value pair) in the configur
config/config.c:858
Functionconfig_register_modification_callback
* @brief Registers a callback function to be called whenever a modification is made to the configuration. * * This function allows you to register a
config/config.c:936
Functionconfig_reload
* @brief Reloads the configuration from the file, updating the in-memory representation. * * This function reloads the configuration from the origin
config/config.c:903
Functionconfig_remove_key
* @brief Removes a specific key-value pair from a section in the configuration. * * This function removes the specified key-value pair from the give
config/config.c:485
Functionconfig_remove_section
* @brief Removes an entire section from the configuration. * * This function removes the specified section from the configuration file. All keys and
config/config.c:420
Functionconfig_save
* @brief Saves the configuration data to the specified file. * * This function writes the contents of the ConfigFile structure back to a file, prese
config/config.c:225
Functionconfig_section_count
* @brief Return the number of sections currently in the config. * * Counts every section that has been loaded or created via * `config_set_value` /
config/config.c:1202
Functionconfig_set_array
* @brief Sets an array of strings for a given key in a specified section. * * This function combines an array of strings into a single comma-separat
config/config.c:1066
Functionconfig_set_bool
* @brief Set a boolean value for a key (typed counterpart to config_get_bool). * * Stores the canonical literal `"true"` or `"false"` via `config_se
config/config.c:1756
Functionconfig_set_comment
* @brief Adds a comment to a specific section in the configuration. * * This function allows you to add a comment to a specified section in the conf
config/config.c:791
Functionconfig_set_double
* @brief Set a double value for a key (typed counterpart to config_get_double). * * Formats `value` with `%.15g` — enough precision that ordinary de
config/config.c:1737
Functionconfig_set_encrypted_value
* @brief Sets an encrypted value for a given key in a section. * * This function encrypts the provided value using a simple XOR encryption with the
config/config.c:1156
Functionconfig_set_int
* @brief Set an integer value for a key (typed counterpart to config_get_int). * * Formats `value` with `%d` and stores it via `config_set_value`, c
config/config.c:1717
Functionconfig_to_string
* @brief Serialize the configuration to a heap-allocated INI-format string. * * Symmetric counterpart to `config_save`. Emits sections as * `[secti
config/config.c:1485
Functionconfig_validate_structure
* @brief Validates the structure of the configuration against an expected template. * * This function checks the configuration to ensure it conforms
config/config.c:959
Functioncopy_mem_bool
variant/variant.c:1408
Functioncopy_mem_char
variant/variant.c:1403
Functioncopy_mem_double
variant/variant.c:1398
Functioncopy_mem_float
variant/variant.c:1393
Functioncopy_mem_int
variant/variant.c:1383
Functioncopy_mem_long
variant/variant.c:1388
Functioncopy_mem_ptr
variant/variant.c:1413
Functioncopy_mem_string
variant/variant.c:1418
Functioncrypto_aes_decrypt
* @brief Decrypt AES produced by crypto_aes_encrypt (same key/iv/mode). * * Returns the plaintext (caller frees) and *out_len, or NULL on error — wh
crypto/crypto.c:1419
Functioncrypto_aes_encrypt
* @brief Encrypt with AES-128/192/256 in ECB/CBC/CFB/OFB/CTR mode. * * Prefer this over crypto_des_encrypt (DES is obsolete). key_len picks the * v
crypto/crypto.c:1364
Functioncrypto_chacha20_poly1305_decrypt
* @brief ChaCha20-Poly1305 AEAD decryption. Returns NULL on auth failure. * * @param ciphertext Bytes to decrypt (may be NULL only if `len == 0`).
crypto/crypto.c:1672
Functioncrypto_chacha20_poly1305_encrypt
* @brief ChaCha20-Poly1305 AEAD encryption (RFC 8439). key=32, iv=12, tag=16. * * @param plaintext Bytes to encrypt (may be NULL only if `len == 0`)
crypto/crypto.c:1642
Functioncrypto_generate_random_iv
crypto/crypto.c:508
Functioncrypto_hash_algorithm_name
* @brief Human-readable name for a `HashAlgorithm` value. * * Returns a static, immutable string suitable for logging and error * messages. Unknown
crypto/crypto.c:932
Functioncrypto_hash_file
* @brief Stream-hash the contents of a file. * * Reads `path` in 64 KiB chunks and feeds each chunk to the digest * — never holds the whole file in
crypto/crypto.c:736
Functioncrypto_hash_from_base64
* @brief Inverse of `crypto_hash_to_base64`: decode a base64 string * back to a byte array. * * Wraps OpenSSL's `EVP_DecodeBlock`. The input
crypto/crypto.c:1051
Functioncrypto_hash_from_hex
* @brief Inverse of `crypto_hash_to_hex`: parse a hex string back to * a byte array. * * Accepts both lowercase and uppercase hex digits. Th
crypto/crypto.c:1001
Functioncrypto_hash_string
* @brief Hash a NUL-terminated C string. * * Convenience wrapper around `crypto_hash_data` that supplies * `strlen(str)` for you. NULL input is rej
crypto/crypto.c:625
Functioncrypto_hash_to_base64
* @brief Convert a binary hash (or any byte buffer) to a base64 string. * * Wraps OpenSSL's `EVP_EncodeBlock`. The result is NUL-terminated and * d
crypto/crypto.c:693
Functioncrypto_hash_to_hex
* @brief Convert a binary hash to a lowercase hexadecimal string. * * Returns a freshly-allocated NUL-terminated string of length * `2 * length` (c
crypto/crypto.c:652
Functioncrypto_hmac_file
* @brief Stream-compute HMAC over the contents of a file. * * Reads `path` in 64 KiB chunks via `HMAC_Update` — never holds the * whole file in mem
crypto/crypto.c:1229
Functioncrypto_password_decrypt
* @brief Reverse crypto_password_encrypt. Returns NULL on a wrong password, a * bad magic/format, or any tampering. See the header contract.
crypto/crypto.c:1770
Functioncrypto_password_encrypt
* @brief Encrypt with a password: PBKDF2-HMAC-SHA256 -> AES-256-GCM, returning a * single self-describing blob. See the header contract. * *
crypto/crypto.c:1707
Functioncrypto_print_hash
* @brief Prints a cryptographic hash in hexadecimal format. * * This function prints the provided hash data as a hexadecimal string. Each byte of th
crypto/crypto.c:277
Functioncrypto_verify_hmac
* @brief Verify an HMAC in a single safe call. * * Computes the expected MAC over @p data with @p key, then compares * it against the supplied @p m
crypto/crypto.c:1185
Functioncsv_column_sum
* @brief Sums the values of a specific column in a CSV file. * * This function calculates the sum of all the integer values in a specified column *
csv/csv.c:816
Functioncsv_export_to_json
* @brief Serialize a CsvFile to a JSON array string. * * Produces a JSON array of objects: every CsvRow becomes one object, * and each cell within
csv/csv.c:921
Functioncsv_file_concatenate
* @brief Concatenates the rows of one CSV file into another. * * This function appends all rows from one CSV file (file2) to another CSV file (file1
csv/csv.c:776
Functioncsv_file_export_to_string
* @brief Serialize the whole file to a malloc'd in-memory string. * * Symmetric to `csv_file_load_from_string`. Cells are joined with * `file->deli
csv/csv.c:1440
Functioncsv_file_filter
* @brief Build a new CsvFile containing only rows that satisfy `predicate`. * * Generic, closure-by-convention filter — the predicate receives a *
csv/csv.c:1259
Functioncsv_file_find_rows
* @brief Finds rows in a CSV file that contain a specific search term. * * This function searches through all rows in a CSV file to find those that
csv/csv.c:652
Functioncsv_file_get_column
* @brief Extract one column as a NULL-terminated array of borrowed strings. * * The returned array is malloc'd and ends in a NULL sentinel. Each ent
csv/csv.c:1121
Functioncsv_file_get_header
* @brief Retrieves the header row from a CSV file. * * This function returns the first row of the CSV file, which is typically considered the header
csv/csv.c:552
Functioncsv_file_get_row
* @brief Retrieves a specific row from a CSV file by index. * * This function returns a pointer to the row at the specified index within the CsvFile
csv/csv.c:366
Functioncsv_file_insert_column
* @brief Inserts a new column into a CSV file at the specified index. * * This function inserts a column into each row of the CSV file at the specif
csv/csv.c:492
Functioncsv_file_load_from_string
* @brief Parse a CSV document held in memory. * * Identical semantics to `csv_file_read`, but reads from a NUL-terminated * string instead of a fil
csv/csv.c:994
Functioncsv_file_read
* @brief Reads the contents of a CSV file into a CsvFile structure. * * This function reads the specified CSV file line by line, parses each line in
csv/csv.c:236
Functioncsv_file_read_rfc4180
* @brief Read a CSV file from disk with full RFC 4180 semantics. * * Slurps the whole file in BINARY mode (so CRLF and embedded newlines * are pres
csv/csv.c:1831
Functioncsv_file_remove_column
* @brief Drop a column from every row in the file. * * Symmetric to `csv_file_insert_column`. Frees the removed cell strings * and shifts subsequen
csv/csv.c:1162
Functioncsv_file_remove_row
* @brief Removes a row from a CSV file at the specified index. * * This function removes the row at the given index from the CsvFile. The subsequent
csv/csv.c:389
Functioncsv_file_set_header
* @brief Sets a new header row for a CSV file. * * This function replaces the existing header row of the CSV file with a new header. * If the CSV f
csv/csv.c:574
Functioncsv_file_sort
* @brief Sort the rows of `file` by the string value in `columnIndex`. * * In-place. Uses `qsort`; not stable across equal keys. Missing cells * ar
csv/csv.c:1218
Functioncsv_file_unique_by_column
* @brief Build a new CsvFile with duplicate rows removed by one column's value. * * Keeps the FIRST occurrence of every distinct value seen in * `c
csv/csv.c:1365
Functioncsv_file_write
* @brief Writes the contents of a CSV file to a specified file. * * Each row is emitted as `cell<delim>cell<delim>...<delim>cell\n`. The * file is
csv/csv.c:283
Functioncsv_file_write_rfc4180
* @brief Write the file to disk with RFC 4180 quoting (crash-safe bytes). * * Serializes via `csv_file_export_to_string_rfc4180`, then writes the *
csv/csv.c:1656
Functioncsv_print
* @brief Prints the contents of a CSV file to the standard output. * * This function iterates through each row and cell of the CsvFile and prints th
csv/csv.c:418
Functioncsv_row_get_cell
* @brief Retrieves the value of a cell at a specified index in a CsvRow. * * This function returns a pointer to the string value of the cell at the
csv/csv.c:127
Functioncsv_row_get_cell_as_int
* @brief Retrieves a cell value from a CSV row as an integer. * * This function returns the value of a specific cell in a row, converted to an integ
csv/csv.c:623
Functioncsv_row_get_cell_by_name
* @brief Fetch a cell by COLUMN NAME using `file`'s header row. * * Equivalent to `csv_row_get_cell(row, csv_file_find_column_index(file, name))`,
csv/csv.c:1084
Functioncsv_row_read_next
* @brief Reads the next row from a file using a FileReader object. * * This function reads the next line from the file associated with the given Fil
csv/csv.c:453
Functioncsv_row_set_cell
* @brief Replace the value at cell `index` of `row` in place. * * Fills the glaring gap that without this function the library can * APPEND cells (
csv/csv.c:1323
Functioncsv_validate_cell_format
* @brief Validates the format of a specific cell in a CSV row. * * This function checks if the content of a specified cell in a row matches * the g
csv/csv.c:711
Functioncsvp_sort_cmp
csv/csv.c:1191
Functiondate_add_days
* @brief Adds a specified number of days to a given date. * * This function creates a new Date object by adding or subtracting the specified * num
date/date.c:971
Functiondate_add_months
* @brief Adds a specified number of months to a given date. * * This function creates a new Date object by adding the specified number of months to
date/date.c:1036
Functiondate_add_years
* @brief Adds a specified number of years to a given date. * * This function creates a new Date object by adding the specified number of years to th
date/date.c:1083
Functiondate_create
* @brief Creates a new Date object with the specified calendar type. * * This function allocates memory for a new Date object and initializes it wit
date/date.c:892
Functiondate_current_date
* @brief Gets the current date based on the specified calendar type. * * This function retrieves the current date and returns it as a Date object. T
date/date.c:1661
Functiondate_day
* @brief Retrieves the day from a Date object. * * This function returns the day of the month for the specified Date object. * * @param date A poi
date/date.c:1148
Functiondate_days_in_month
* @brief Returns the number of days in the specified month of the given year. * * This function returns the total number of days in the month for th
date/date.c:1270
← previousnext →1,101–1,200 of 2,651, ranked by callers