summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorsumuel <samuel@yakubos.org>2026-09-15 19:25:57 +0000
committersumuel <samuel@yakubos.org>2026-09-15 19:25:57 +0000
commit4a82af7bf7c607a67626515fb29a10b510f9d385 (patch)
tree5ff2cb646db8f72b6b06e3123599af3300d518ba /main.c
parentef781c5fdb924d66a0ed06986b529a0d3ba323f2 (diff)
license addHEADmaster
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 2b3f98e..154f749 100644
--- a/main.c
+++ b/main.c
@@ -9,7 +9,7 @@ size_t collatz(size_t long_num) {
size_t printer(size_t long_num, bool verbose) {
size_t steps = 0;
- /* Probably not the best way to do this */
+ /* perhaps there is a less ugly way? */
if (verbose) {
while ( long_num > 1 ) {
long_num = collatz(long_num);
@@ -35,6 +35,7 @@ int print_help(char *argv[]) {
int main(int argc, char *argv[]) {
if ( argc < 2 || argc > 3 ) return print_help(argv);
+ /* quit from the start */
bool verbose = false;
char *endptr;