summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-11Add error handling for non-numbers passedHEADmasterzachir
Non-numbers that are passed will return -1, and print an error message. This includes decimal places, as only integers can be even or odd.
2024-03-11Prints help msg when no argszachir
When no args are provided, even will now print the help message and return -1.
2024-03-11Fixes logic error with quietzachir
Before, quiet worked in reverse, i.e. text was only displayed when -q was passed. Also, even now will not return 1 with an odd number when quiet is not passed.
2024-03-11Add install/uninstall to Makefilezachir
2024-03-11Replace build system with zigzachir
Zig is actually handling the building and such, now the Makefile is here just as a wrapper for it.
2024-03-06Optimize for size, and redo Makefile1.0.0zachir
Optimizing for size for the current comparison. Also, I don't know of a generic way to do ${OBJ}: ${SRC} as a Makefile target, so I made that part not generic.
2024-03-06Use strtol instead of checking each digitzachir
This makes it both faster and smaller.
2024-03-06Reorganize the help messagezachir
Changed around stuff in the help message to make it more consistent with zeven.
2024-02-14even: Fix help messagezachir
The help message was missing some information, that has now been added.
2024-02-14even: Add bin to check if number is evenzachir
even is a basic binary to check if the provided number is even.