From 7b813c44520a1678f396e03c296885c73a68e2c0 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 31 Oct 2023 12:38:01 -0700 Subject: [PATCH] Add arg check to 2006/hamre After it was suggested this be fixed I went ahead and did it. I kept the format almost the same by careful placement and line ending. --- 2006/hamre/README.md | 21 --------------------- 2006/hamre/hamre.c | 2 +- bugs.md | 17 ----------------- 3 files changed, 1 insertion(+), 39 deletions(-) diff --git a/2006/hamre/README.md b/2006/hamre/README.md index a6f931a15..724255dcd 100644 --- a/2006/hamre/README.md +++ b/2006/hamre/README.md @@ -10,17 +10,6 @@ make ``` -### Bugs and (Mis)features - -The current status of this entry is: - -``` -STATUS: known bug - please help us fix -``` - -For more detailed information see [2006 hamre in bugs.md](/bugs.md#2006-hamre). - - ## To use: ```sh @@ -33,16 +22,6 @@ For more detailed information see [2006 hamre in bugs.md](/bugs.md#2006-hamre). ./hamre '-1+4/3*(2+1/(3/2*(7/2-7/3+1/6)))/2' ``` -### INABIAF - it's not a bug it's a feature! :-) - -This program will very likely crash or do something completely irrational :-) if you -don't supply it with an argument. - -As well supplying more arguments will possibly limit the number of nested -operators supported. - -Don't try dividing by 0 (zero). - ## Judges' remarks: An irrationally coded source presents rational things! diff --git a/2006/hamre/hamre.c b/2006/hamre/hamre.c index f645c1898..bc4a6d244 100644 --- a/2006/hamre/hamre.c +++ b/2006/hamre/hamre.c @@ -8,7 +8,7 @@