#include #include #include #include #define SIZE 1000 int search0(const unsigned char * t,int start,int end) { int i; for (i=start; i 0){ if (search0(t,milieu+1,end)){ return 1; } wait(&status); return WEXITSTATUS(status); } return 0; } int search2(const unsigned char * t,int start,int end) { int i; int nbFils; int taille = (end-start); int pid; int status; printf("Enter a number between 0 and 100: ", SIZE); scanf(" %d", &nbFils); for (int i=0; i= 0 && i < SIZE) arr[i] = 0; if (search3(arr,0,SIZE-1)) printf("Found !\n"); else printf("Not found !\n"); return EXIT_SUCCESS; }