diff options
Diffstat (limited to 'simclist-1.5/perftest/sort.c')
| -rw-r--r-- | simclist-1.5/perftest/sort.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/simclist-1.5/perftest/sort.c b/simclist-1.5/perftest/sort.c deleted file mode 100644 index 171c8d7..0000000 --- a/simclist-1.5/perftest/sort.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <simclist.h> - -#define BUFLEN 20 - -int main() { - list_t l; - unsigned int i; - char buf[BUFLEN]; - - list_init(&l); - list_attributes_copy(&l, list_meter_int32_t, 1); - list_attributes_comparator(&l, list_comparator_int32_t); - - while (fgets(buf, BUFLEN, stdin) != NULL) { - i = atoi(buf); - list_append(&l, &i); - } - - list_sort(&l, 1); - - return 0; -} |
