summaryrefslogtreecommitdiff
path: root/lab_6/unity/src/foo.c
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-26 10:24:00 -0800
committerFuwn <[email protected]>2026-02-26 10:31:15 -0800
commita14f361a60f55299e0057c419cc59e5194a77854 (patch)
treeedf54089f5849ee4dfdac48bd04bd8c271cfb62a /lab_6/unity/src/foo.c
parentfeat(homework_2): Add implementation (diff)
downloadcst456-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.c6
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);
+}