2025-05-26 00:51:22 +02:00
2025-05-26 00:51:22 +02:00
2025-05-26 00:51:22 +02:00
2025-05-26 00:51:22 +02:00
2025-05-26 00:51:22 +02:00
2025-05-26 00:51:22 +02:00
2025-05-26 00:51:22 +02:00
2025-05-26 00:51:22 +02:00

A "simple" C99 calculator. Can be configured to work with different number types, including custom ones (see config/, make.sh and test.sh).

This was initially written for a challenge posed by a rust programmer, who tasked me to make a secure calculator. I think I've achieved this. Although it is obviously using a lot more code.

Handles a lot of failure types involving invalid inputs. Does not handle over/underflows on integer-based configs.

Syntax: ./calc <add/sub/mul/div> <nr1> <nr2>
Description
A "simple" C99 calculator
Readme MIT 30 KiB
Languages
C 94.6%
Shell 5.4%