Add initial stuff

This commit is contained in:
Patrick Pelissier committed 2017-02-18 18:51:04 +01:00
1 parent 2d8bda0fe0
commit 8e9d20ba1a
45 files changed
+8901

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
#include <stdlib.h>
#include "m-array.h"
ARRAY_DEF(int, int)
const int n = 100000;
int main(void)
{
array_int_t x;
array_int_init(x);
for (int i = 0; i < n; i++) {
array_int_push_back(x, rand());
}
for (int i = 0; i < n; i++) {
array_int_push_at (x, rand() % n, rand());
}
for (int i = 0; i < n; i++) {
array_int_pop_at (NULL, x, rand() % n);
}
array_int_clear(x);
return 0;
}