summaryrefslogtreecommitdiff
path: root/libs/simclist-1.5/examples/ex1.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@mailbox.org>2026-01-09 15:28:38 +0100
committerAldrik Ramaekers <aldrik@mailbox.org>2026-01-09 15:28:38 +0100
commit210404a73706993d197c1290d5a411394e176fbe (patch)
tree93c3ea9fc4691ca42f26dd92c6e14627af0b47af /libs/simclist-1.5/examples/ex1.c
parenta65e876f3277a7d7fca6e5129ac3e200dae2d0dc (diff)
remove unused lib files
Diffstat (limited to 'libs/simclist-1.5/examples/ex1.c')
-rw-r--r--libs/simclist-1.5/examples/ex1.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/libs/simclist-1.5/examples/ex1.c b/libs/simclist-1.5/examples/ex1.c
deleted file mode 100644
index 13c67c3..0000000
--- a/libs/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;
-}
-