ix = GetFileLength(fname); | ix = GetFileLength(fname); | ||||
prog_log_table = (PHONEME_PROG_LOG *)malloc(ix); | prog_log_table = (PHONEME_PROG_LOG *)malloc(ix); | ||||
if(prog_log_table == NULL) | if(prog_log_table == NULL) | ||||
{ | |||||
fclose(f_prog_log); | |||||
return; | return; | ||||
} | |||||
ix = fread(prog_log_table, 1, ix, f_prog_log); | ix = fread(prog_log_table, 1, ix, f_prog_log); | ||||
fclose(f_prog_log); | fclose(f_prog_log); | ||||
n_prog_log = ix / sizeof(PHONEME_PROG_LOG); | n_prog_log = ix / sizeof(PHONEME_PROG_LOG); |