2 Commits

Author SHA1 Message Date
lucas 35b04e088e correction boucl inf toolbox.c 2026-04-13 00:33:20 +02:00
lucas 76965cc3f0 correction main crepe_stream.c 2026-04-13 00:19:31 +02:00
2 changed files with 12 additions and 11 deletions
@@ -99,7 +99,7 @@ void print_menu(struct array *arr)
foreach(arr, (acceptor)&print_arr);
}
/*
#include <stdlib.h>
int main(void)
@@ -143,7 +143,7 @@ int main(void)
free(arr.data);
}
*/
/*
#include <stdlib.h>
+2 -1
View File
@@ -7,7 +7,7 @@ struct array *sort(struct array *arr, comparator f)
{
void *temp = malloc(arr->elem_size);
if (arr->len > 0) {
for(size_t index1 = 0; index1 < arr->len - 1; index1 ++ ){
for(size_t index2 = index1; index2 < arr->len; index2 ++){
@@ -22,6 +22,7 @@ struct array *sort(struct array *arr, comparator f)
}
}
}
}
free(temp);
return arr;