aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorCody <cody@codyq.dev>2023-06-26 18:49:29 -0500
committerCody <cody@codyq.dev>2023-06-26 18:49:29 -0500
commitdaecd330d5719e4a65d5b07f81209f99f423e6a2 (patch)
tree5e2065a0d43932d39333631b60471c2ad96fa4aa /test.c
parent00e423d30edf38a5e57c5c1c52cdb323c62850bc (diff)
downloadsloth-daecd330d5719e4a65d5b07f81209f99f423e6a2.tar.gz
vset, vget & vlen
Diffstat (limited to 'test.c')
-rw-r--r--test.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/test.c b/test.c
index 988b352..cac1aef 100644
--- a/test.c
+++ b/test.c
@@ -8,6 +8,12 @@ typedef struct {
IntVec* test();
int testtwo(IntVec*);
+int testthree(IntVec*);
+int testfour(IntVec*);
+
+void testback(int x) {
+ printf("%d, ", x);
+}
int main() {
IntVec* v = test();
@@ -38,5 +44,10 @@ int main() {
int value = inner[i];
printf("%d ", value);
}
- puts("\n");
+ puts("\n\n");
+ int i = testthree(v);
+ printf("%d ", i);
+ puts("\n\n");
+ testfour(v);
+ puts("");
}