diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-09 15:28:38 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-09 15:28:38 +0100 |
| commit | 210404a73706993d197c1290d5a411394e176fbe (patch) | |
| tree | 93c3ea9fc4691ca42f26dd92c6e14627af0b47af /libs/simclist-1.5/perftest/ext.c | |
| parent | a65e876f3277a7d7fca6e5129ac3e200dae2d0dc (diff) | |
remove unused lib files
Diffstat (limited to 'libs/simclist-1.5/perftest/ext.c')
| -rw-r--r-- | libs/simclist-1.5/perftest/ext.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/libs/simclist-1.5/perftest/ext.c b/libs/simclist-1.5/perftest/ext.c deleted file mode 100644 index 8288b84..0000000 --- a/libs/simclist-1.5/perftest/ext.c +++ /dev/null @@ -1,31 +0,0 @@ - -#include <stdio.h> -#include <stdlib.h> -#include <time.h> -#include <simclist.h> - -#define NELS 1000000 - -size_t szelem(const void *el) { - return sizeof(int); -} - -int main() { - list_t l; - int i; - - srandom(time(NULL)); - - list_init(&l); - list_attributes_copy(&l, szelem, 1); - - for (i = 0; i < NELS; i++) { - list_append(&l, &i); - } - - for (i = 0; i < 1000; i++) { - list_get_at(&l, random()%NELS); - } - - return 0; -} |
