diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-09 08:35:03 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-09 08:35:03 +0200 |
| commit | 432f24319319fe040e142059eb83279c53f90ab8 (patch) | |
| tree | 5631eb0eb3a46d086070e8398d9080ff681133ac /libs/simclist-1.5/regrtest/printlist.c | |
| parent | 5d34aff5888d3f0c624251f15bedb96c347978d6 (diff) | |
refactor 2
Diffstat (limited to 'libs/simclist-1.5/regrtest/printlist.c')
| -rw-r--r-- | libs/simclist-1.5/regrtest/printlist.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/simclist-1.5/regrtest/printlist.c b/libs/simclist-1.5/regrtest/printlist.c new file mode 100644 index 0000000..bb4d0c7 --- /dev/null +++ b/libs/simclist-1.5/regrtest/printlist.c @@ -0,0 +1,11 @@ +#include <stdio.h> + + +void printlist(list_t *l) { + int i; + + for (i = 0; i < list_size(l); i++) { + printf ("> %d\n", *(int *)list_get_at(l, i)); + } +} + |
