diff options
| author | Fuwn <[email protected]> | 2026-02-26 10:24:00 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-26 10:31:15 -0800 |
| commit | a14f361a60f55299e0057c419cc59e5194a77854 (patch) | |
| tree | edf54089f5849ee4dfdac48bd04bd8c271cfb62a /lab_6/unity/src/foo.c | |
| parent | feat(homework_2): Add implementation (diff) | |
| download | cst456-a14f361a60f55299e0057c419cc59e5194a77854.tar.xz cst456-a14f361a60f55299e0057c419cc59e5194a77854.zip | |
feat(lab_6): Add initial files
Diffstat (limited to 'lab_6/unity/src/foo.c')
| -rw-r--r-- | lab_6/unity/src/foo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lab_6/unity/src/foo.c b/lab_6/unity/src/foo.c new file mode 100644 index 0000000..32645d6 --- /dev/null +++ b/lab_6/unity/src/foo.c @@ -0,0 +1,6 @@ +#include "foo.h"
+
+uint16_t squareNumber (uint8_t numberToBeSquared)
+{
+ return ((uint16_t) numberToBeSquared * numberToBeSquared);
+}
|