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
Function
algorithm_copy_if
* @brief Copies elements from a source array to a destination array if they satisfy a predicate function. * * @param first Pointer to the start of t
algorithm/algorithm.c:1319
Function
algorithm_copy_n
* @brief Copies the first n elements from a source array to a destination array. * * @param first Pointer to the start of the source array. * @para
algorithm/algorithm.c:1346
Function
algorithm_count
* @brief Counts the number of occurrences of a value in a range. * * This function iterates over the elements in the range `[base, base + num * size
algorithm/algorithm.c:790
Function
algorithm_count_if
* @brief Counts the number of elements in a range that satisfy a predicate function. * * This function iterates over the elements in the range `[bas
algorithm/algorithm.c:821
Function
algorithm_end
* @brief Returns a pointer to one past the last element of an array. * * @param base Pointer to the start of the array. * @param num Number of elem
algorithm/algorithm.c:2239
Function
algorithm_equal
* @brief Checks if two ranges are equal. * * This function compares two ranges `[base1, base1 + num1 * size1)` and `[base2, base2 + num2 * size2)`
algorithm/algorithm.c:1064
Function
algorithm_equal_range
* @brief Finds the range of elements that are equal to a specified value in a sorted range. * * This function returns a `Pair` representing the rang
algorithm/algorithm.c:1383
Function
algorithm_fill
* @brief Fills a range with a specified value. * * @param first Pointer to the start of the range. * @param last Pointer to the end of the range.
algorithm/algorithm.c:746
Function
algorithm_fill_n
* @brief Fills the first n elements of a range with a specified value. * * @param first Pointer to the start of the range. * @param n Number of ele
algorithm/algorithm.c:764
Function
algorithm_find
* @brief Finds the first element in a range that matches a specified value. * * This function searches for the first element in the range `[base, ba
algorithm/algorithm.c:292
Function
algorithm_find_end
* @brief Finds the last occurrence of a subsequence in a range. * * This function searches for the last occurrence of the sequence `[base2, base2 +
algorithm/algorithm.c:383
Function
algorithm_find_first_of
* @brief Finds the first element in a range that matches any element in another range. * * This function searches for the first element in the range
algorithm/algorithm.c:442
Function
algorithm_find_if
* @brief Finds the first element in a range that satisfies a predicate. * * This function searches for the first element in the range `[base, base +
algorithm/algorithm.c:321
Function
algorithm_find_if_not
* @brief Finds the first element in a range that does not satisfy a predicate. * * This function searches for the first element in the range `[base,
algorithm/algorithm.c:350
Function
algorithm_for_each
* @brief Applies a function to each element in an array. * * @param base Pointer to the start of the array. * @param num Number of elements in the
algorithm/algorithm.c:586
Function
algorithm_generate
* @brief Generates values for a range using a generator function. * * @param first Pointer to the start of the range. * @param last Pointer to the
algorithm/algorithm.c:1249
Function
algorithm_generate_n
* @brief Generates values for the first n elements of a range using a generator function. * * @param first Pointer to the start of the range. * @pa
algorithm/algorithm.c:1271
Function
algorithm_inc_char
algorithm/algorithm.c:2338
Function
algorithm_inc_double
algorithm/algorithm.c:2388
Function
algorithm_inc_float
algorithm/algorithm.c:2383
Function
algorithm_inc_int
algorithm/algorithm.c:2333
Function
algorithm_inc_int16
algorithm/algorithm.c:2403
Function
algorithm_inc_int32
algorithm/algorithm.c:2408
Function
algorithm_inc_int64
algorithm/algorithm.c:2413
Function
algorithm_inc_int8
algorithm/algorithm.c:2398
Function
algorithm_inc_long
algorithm/algorithm.c:2348
Function
algorithm_inc_long_double
algorithm/algorithm.c:2393
Function
algorithm_inc_long_long
algorithm/algorithm.c:2353
Function
algorithm_inc_short
algorithm/algorithm.c:2343
Function
algorithm_inc_size_t
algorithm/algorithm.c:2438
Function
algorithm_inc_uchar
algorithm/algorithm.c:2358
Function
algorithm_inc_uint
algorithm/algorithm.c:2368
Function
algorithm_inc_uint16
algorithm/algorithm.c:2423
Function
algorithm_inc_uint32
algorithm/algorithm.c:2428
Function
algorithm_inc_uint64
algorithm/algorithm.c:2433
Function
algorithm_inc_uint8
algorithm/algorithm.c:2418
Function
algorithm_inc_ulong
algorithm/algorithm.c:2373
Function
algorithm_inc_ulong_long
algorithm/algorithm.c:2378
Function
algorithm_inc_ushort
algorithm/algorithm.c:2363
Function
algorithm_includes
* @brief Determines if a sorted range includes all the elements of another sorted range. * * This function checks if all elements of the sorted rang
algorithm/algorithm.c:1414
Function
algorithm_inplace_merge
* @brief Merges two sorted halves of an array in place. * * @param base Pointer to the start of the array. * @param middle Index of the middle elem
algorithm/algorithm.c:1749
Function
algorithm_iota
* @brief Fill a range with `start, ++start, ++start, ...` for any type. * * Genuinely generic: it doesn't care what `T` is. The caller supplies the
algorithm/algorithm.c:2288
Function
algorithm_is_permutation
* @brief Checks if two arrays are permutations of each other. * * This function checks whether the elements of the two arrays `base1` and `base2` ar
algorithm/algorithm.c:1888
Function
algorithm_is_sorted
* @brief Checks if the elements in a range are sorted in non-decreasing order. * * This function determines whether the elements in the array pointe
algorithm/algorithm.c:1576
Function
algorithm_is_sorted_until
* @brief Finds the first position in a range where the elements are no longer sorted. * * This function searches through the array pointed to by `ba
algorithm/algorithm.c:1614
Function
algorithm_max_element
* @brief Finds the maximum element in a range. * * This function iterates over the elements in the range `[base, base + num * size)` to find the max
algorithm/algorithm.c:521
Function
algorithm_merge
* @brief Merges two sorted arrays into a single sorted array. * * @param base1 Pointer to the first sorted array. * @param num1 Number of elements
algorithm/algorithm.c:1706
Function
algorithm_min_element
* @brief Finds the minimum element in a range. * * This function iterates over the elements in the range `[base, base + num * size)` to find the min
algorithm/algorithm.c:557
Function
algorithm_mismatch
* @brief Finds the first position where two ranges differ. * * This function compares two arrays element by element and returns the first position w
algorithm/algorithm.c:1843
Function
algorithm_next_permutation
* @brief Generates the next lexicographical permutation of a range. * * This function rearranges the elements in the range `[first, last)` into the
algorithm/algorithm.c:1101
Function
algorithm_none_of
* @brief Checks if none of the elements in a range satisfy a predicate. * * This function returns `true` if the predicate `pred` returns `false` for
algorithm/algorithm.c:722
Function
algorithm_partition
* @brief Partitions a range of elements based on a predicate function. * * This function rearranges the elements in the range `[base, base + num * s
algorithm/algorithm.c:1204
Function
algorithm_prev_permutation
* @brief Generates the previous lexicographical permutation of a range. * * This function rearranges the elements in the range `[first, last)` into
algorithm/algorithm.c:1153
Function
algorithm_reduce
* @brief Reduces a range of elements to a single value using a specified binary operation. * * This function applies the binary operation `op` to ea
algorithm/algorithm.c:991
Function
algorithm_remove
* @brief Removes elements that match a specified value from an array. * * This function removes all elements from the array `base` that match the va
algorithm/algorithm.c:2046
Function
algorithm_remove_copy
* @brief Copies elements from a source array to a destination array, excluding elements that match a given value. * * @param source Pointer to the s
algorithm/algorithm.c:2077
Function
algorithm_remove_copy_if
* Removes elements from the source array based on a given predicate function and copies the remaining elements to the result array. * * @param sourc
algorithm/algorithm.c:2107
Function
algorithm_replace
* Replaces occurrences of a value in an array. * * This function replaces occurrences of the value `old_val` with the value `new_val` in the array `
algorithm/algorithm.c:2147
Function
algorithm_replace_if
* Replaces elements in an array based on a given predicate function. * * This function iterates over the elements in the array pointed to by `base`
algorithm/algorithm.c:2184
Function
algorithm_rotate
* @brief Rotates elements in a range. * * @param first Pointer to the start of the range. * @param middle Pointer to the middle of the range. * @p
algorithm/algorithm.c:1642
Function
algorithm_rotate_copy
* @brief Rotates elements in a range and copies them to a destination array. * * @param first Pointer to the start of the range. * @param middle Po
algorithm/algorithm.c:1672
Function
algorithm_search
* @brief Searches for the first occurrence of a sequence within another sequence. * * This function searches for the first occurrence of the sequenc
algorithm/algorithm.c:1952
Function
algorithm_search_n
* @brief Searches for a sequence of identical elements within a range. * * This function searches for the first occurrence of a sequence of `count`
algorithm/algorithm.c:2004
Function
algorithm_shuffle
* @brief Randomly shuffles elements in an array. * * @param base Pointer to the start of the array. * @param num Number of elements in the array.
algorithm/algorithm.c:846
Function
algorithm_stable_sort
* @brief Sorts an array using a stable merge sort algorithm. * * @param base Pointer to the start of the array. * @param num Number of elements in
algorithm/algorithm.c:214
Function
algorithm_swap_ranges
* @brief Swaps ranges of elements between two arrays. * * @param first1 Pointer to the start of the first array. * @param first2 Pointer to the sta
algorithm/algorithm.c:1546
Function
algorithm_transform
* @brief Transforms each element in an array and stores the result in another array. * * @param base Pointer to the start of the input array. * @pa
algorithm/algorithm.c:962
Function
algorithm_unique
* @brief Removes consecutive duplicate elements from a sorted array. * * This function removes consecutive duplicate elements from a sorted array `b
algorithm/algorithm.c:1022
Function
algorithm_unique_copy
* @brief Copies unique elements from a sorted range to a new range. * * This function copies unique elements from the sorted array `first` to the ar
algorithm/algorithm.c:1456
Function
bigfloat_abs
* @brief Returns the absolute value of a BigFloat. * @param a Pointer to the BigFloat. * @return A new BigFloat representing |a|, or NULL on error.
bigfloat/bigfloat.c:445
Function
bigfloat_add
* @brief Adds two BigFloat numbers. * @param a Pointer to the first BigFloat. * @param b Pointer to the second BigFloat. * @return Pointer to a new
bigfloat/bigfloat.c:89
Function
bigfloat_cbrt
* @brief Computes the cube root of a BigFloat. * @param a Pointer to the BigFloat. * @return A new BigFloat representing cbrt(a), or NULL on error.
bigfloat/bigfloat.c:679
Function
bigfloat_ceil
* @brief Computes the ceiling of a BigFloat. * @param a Pointer to the BigFloat. * @return A new BigFloat representing ceil(a), or NULL on error. *
bigfloat/bigfloat.c:511
Function
bigfloat_compare
* @brief Compares two BigFloats. * @param a Pointer to the first BigFloat. * @param b Pointer to the second BigFloat. * @return * - `-1` if
bigfloat/bigfloat.c:353
Function
bigfloat_copy
* @brief Creates an exact copy of a BigFloat. * * The BigFloat counterpart to bigint_copy. The new value carries the SAME * precision as @p src, so
bigfloat/bigfloat.c:830
Function
bigfloat_divide
* @brief Divides two BigFloat numbers. * @param a Pointer to the first BigFloat (numerator). * @param b Pointer to the second BigFloat (denominator)
bigfloat/bigfloat.c:158
Function
bigfloat_erf
* @brief Computes the error function (erf) of a BigFloat. * * @param a Pointer to the input BigFloat. * @return Pointer to a new BigFloat containin
bigfloat/bigfloat.c:778
Function
bigfloat_exp
* @brief Computes the exponential function (e^a) of a BigFloat. * @param a Pointer to the BigFloat. * @return Pointer to a new BigFloat representing
bigfloat/bigfloat.c:261
Function
bigfloat_exp2
* @brief Computes 2^a (exponential function with base 2). * @param a Pointer to the BigFloat. * @return A new BigFloat representing 2^a, or NULL on
bigfloat/bigfloat.c:635
Function
bigfloat_expm1
* @brief Computes exp(a) - 1 with high precision. * * @param a Pointer to the input BigFloat. * @return Pointer to a new BigFloat containing exp(a)
bigfloat/bigfloat.c:802
Function
bigfloat_floor
* @brief Computes the floor of a BigFloat. * @param a Pointer to the BigFloat. * @return A new BigFloat representing the floor(a), or NULL on error.
bigfloat/bigfloat.c:489
Function
bigfloat_fmod
* @brief Computes the floating-point remainder of division (a % b). * @param a Pointer to the first BigFloat. * @param b Pointer to the second BigFl
bigfloat/bigfloat.c:725
Function
bigfloat_from_double
* @brief Creates a BigFloat from a double. * @param value The double value. * @return Pointer to the new BigFloat. */
bigfloat/bigfloat.c:57
Function
bigfloat_from_string
* @brief Creates a BigFloat from a string. * @param str A pointer to the string representation. * @return Pointer to the new BigFloat, or NULL on er
bigfloat/bigfloat.c:31
Function
bigfloat_hypot
* @brief Computes the Euclidean norm (hypotenuse) of two BigFloat numbers. * @param a Pointer to the first BigFloat. * @param b Pointer to the secon
bigfloat/bigfloat.c:702
Function
bigfloat_is_finite
* @brief Checks whether a BigFloat is finite (an ordinary number). * * Returns true only for ordinary values — neither NaN nor infinite. Use it to
bigfloat/bigfloat.c:904
Function
bigfloat_is_inf
* @brief Checks whether a BigFloat is +/- infinity. * * @param a Pointer to the BigFloat. * @return true if @p a is infinite; false otherwise (incl
bigfloat/bigfloat.c:886
Function
bigfloat_is_nan
* @brief Checks whether a BigFloat is NaN (not a number). * * @param a Pointer to the BigFloat. * @return true if @p a is NaN; false otherwise (inc
bigfloat/bigfloat.c:872
Function
bigfloat_lgamma
* @brief Computes the logarithm of the absolute value of the gamma function of a BigFloat. * * @param a Pointer to the input BigFloat. * @return Po
bigfloat/bigfloat.c:754
Function
bigfloat_log
* @brief Computes the natural logarithm (ln) of a BigFloat. * @param a Pointer to the BigFloat. * @return Pointer to a new BigFloat representing ln(
bigfloat/bigfloat.c:234
Function
bigfloat_log10
* @brief Computes the base-10 logarithm of a BigFloat. * @param a Pointer to the BigFloat. * @return A new BigFloat representing log10(a), or NULL i
bigfloat/bigfloat.c:657
Function
bigfloat_mod
* @brief Computes the remainder of division (a mod b). * @param a Pointer to the first BigFloat. * @param b Pointer to the second BigFloat. * @retu
bigfloat/bigfloat.c:605
Function
bigfloat_multiply
* @brief Multiplies two BigFloat numbers. * @param a Pointer to the first BigFloat. * @param b Pointer to the second BigFloat. * @return Pointer to
bigfloat/bigfloat.c:135
Function
bigfloat_negate
* @brief Negates a BigFloat (multiplies it by -1). * @param a Pointer to the BigFloat. * @return A new BigFloat representing -a, or NULL on error.
bigfloat/bigfloat.c:467
Function
bigfloat_pow
* @brief Computes the power of a BigFloat raised to another BigFloat. * @param base Pointer to the base BigFloat. * @param exponent Pointer to the e
bigfloat/bigfloat.c:212
Function
bigfloat_reciprocal
* @brief Computes the reciprocal (1 / a) of a BigFloat. * @param a Pointer to the BigFloat. * @return A new BigFloat representing 1 / a, or NULL if
bigfloat/bigfloat.c:577
Function
bigfloat_round
* @brief Rounds a BigFloat to the nearest integer. * @param a Pointer to the BigFloat. * @return A new BigFloat representing round(a), or NULL on er
bigfloat/bigfloat.c:533
Function
bigfloat_sqrt
* @brief Computes the square root of a BigFloat. * @param a Pointer to the BigFloat. * @return Pointer to a new BigFloat representing sqrt(a), or NU
bigfloat/bigfloat.c:184
Function
bigfloat_subtract
* @brief Subtracts two BigFloat numbers. * @param a Pointer to the first BigFloat. * @param b Pointer to the second BigFloat. * @return Pointer to
bigfloat/bigfloat.c:112
Function
bigfloat_to_double
* @brief Converts a BigFloat to a native double. * * The inverse of bigfloat_from_double: rounds the high-precision value to the * nearest represen
bigfloat/bigfloat.c:856
← previous
next →
901–1,000 of 2,651, ranked by callers