diff options
Diffstat (limited to 'src/benchmarks/realloc/realloc.c')
| -rw-r--r-- | src/benchmarks/realloc/realloc.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/benchmarks/realloc/realloc.c b/src/benchmarks/realloc/realloc.c deleted file mode 100644 index b6e6034..0000000 --- a/src/benchmarks/realloc/realloc.c +++ /dev/null @@ -1,14 +0,0 @@ -#include <stdlib.h> -#include <stdio.h> - -size_t* array; -size_t steps = 1; -int main() { - for (int i = 1; i < 100; i++) { - if ((array = realloc(array, sizeof(size_t) * steps * i)) == NULL) { - perror("realloc"); - return 1; - } - } - return 0; -} |
