summaryrefslogtreecommitdiff
path: root/simclist-1.5/examples/ex1.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-08-09 08:35:03 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-08-09 08:35:03 +0200
commit432f24319319fe040e142059eb83279c53f90ab8 (patch)
tree5631eb0eb3a46d086070e8398d9080ff681133ac /simclist-1.5/examples/ex1.c
parent5d34aff5888d3f0c624251f15bedb96c347978d6 (diff)
refactor 2
Diffstat (limited to 'simclist-1.5/examples/ex1.c')
-rw-r--r--simclist-1.5/examples/ex1.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/simclist-1.5/examples/ex1.c b/simclist-1.5/examples/ex1.c
deleted file mode 100644
index 13c67c3..0000000
--- a/simclist-1.5/examples/ex1.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <stdio.h>
-
-#include <simclist.h> /* use the SimCList library */
-
-
-int main() {
- list_t mylist; /* declare a list */
- int userval;
-
-
- list_init(& mylist); /* initialize the list */
-
- printf("Insert your number: ");
- scanf("%d", & userval);
-
- list_append(& mylist, & userval); /* add an element to the list */
-
- printf("The list now holds %u elements.\n", \
- list_size(& mylist)); /* get the size of the list */
-
- printf("Your number was: %d\n", \
- * (int*)list_get_at(& mylist, 0)); /* extract the first element of the list */
-
- list_destroy(&mylist);
-
- return 0;
-}
-