P.S. la funzione sizeoff_s è questa
e timemcodice:int sizeoff_s(FILE *stream){ int size; fseek(stream, 0, SEEK_END); size = ftell(stream); fseek(stream, 0, SEEK_SET); return size; }
codice:int timem(int size){ int *m = malloc(size); if(m == NULL){ return 0; }else{ return 1; } }