Why is calloc function not allocating the array?

I’m trying to read a file and fill an array with all the characters in the file. The problem is that in the while cycle the execution stops and there is a segmentation fault error. This is the interested function: void allocAndFillArray(char **arrayChar, FILE *file) { // *file is checked before the function and //… Read More Why is calloc function not allocating the array?