summaryrefslogtreecommitdiff
path: root/src/main.c
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-11Replace build system with zigzachir
Zig is actually handling the building and such, now the Makefile is here just as a wrapper for it.