Originalmente inviato da stejano
Qual è la spiegazione corretta?
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);

The function fread() reads nmemb elements of data, each size bytes
long, from the stream pointed to by stream, storing them at the loca-
tion given by ptr.
Puoi leggere al massimo sizeof(ise) quindi 16 bytes. Se il file formato.mid contiene meno di 16 caratteri (bytes), ftell tornerà tale numero/posizione dello stream (ossia nbytes +1), ma dovuto alla fread non può andare oltre i 16 bytes..