Added a way to print out instead of stdout but to a file (everything about the process but errors (those still go to stderr) and made it so now someone can actually use echo -e "" | ./bin/stergios (prior this was impossible to do due to readline quirks)
Stergios Upload Compile Checker / Explore-Gitea-Actions (push) Successful in 7s

This commit is contained in:
metallaxis committed 2026-07-05 05:31:32 +03:00
1 parent 030b73597f
commit 49467332de
10 files changed
+191 -63

No files matched your search

+4 -1
View File
@@ -3,6 +3,8 @@
#include "utils.h"
#include <stdio.h>
/**
* @brief Checks if a 128 bit integer is a prime number
* @param n The integer to check
@@ -91,9 +93,10 @@ int128_t power(int128_t b, int128_t ex);
* @param values Pointer to the array of values
* @param n1 The first integer
* @param print_mode The mode for printing the results
* @param output The file pointer for output (can be NULL)
*/
void generate_factor_pairs(int128_t* sum, int32_t prime_index, int32_t* exponents,
int128_t* values, int128_t n1, int print_mode);
int128_t* values, int128_t n1, int print_mode, FILE* output);
/**
* @brief Calculates the square root of an unsigned 128 bit integer