#include #include #define LIMIT 1000 #define BUF_LIM 512 long racineCarree(long n){ for(long i=0; i<(n/2); i++){ if((i*i)==n){ return i; } } return -1; } long* racineCarreeTab(long* tab, int count){ long* rst = (long*) malloc(LIMIT*sizeof(long)); for(long i=0; i\n"); printf("USAGE:./a.out \n"); return EXIT_FAILURE; } if(f!=NULL){ while(fgets(buffer, BUF_LIM*sizeof(char), f)){ tab[count] = strtol(buffer, NULL, 10); count++; } fclose(f); hasfile = 1; } else { for(int i=1; i