#include <stdlib.h>
-#include "sort.h"
+#include "array.h"
int create_tab(int tab[], unsigned tab_size) {
tab = malloc(sizeof(unsigned) * tab_size);
/* we suppose both tab are already created */
static void copy_tab(int src_tab[], int dest_tab[], unsigned min_tab_size, unsigned index_offset) {
+ /* FIXME: I think it's worth doing some sanity check on the array size */
for (unsigned i = 0; i < min_tab_size; i++) {
dest_tab[i + index_offset] = src_tab[i];
}