4 int emufs_idx_buscar_mayor_id(EMUFS *emu)
11 strcpy(name_f_idx,emu->nombre);
12 strcat(name_f_idx,".idx");
14 if ( (f_idx = fopen(name_f_idx,"r")) == NULL) return -1; /*ERROR*/
15 while ( !feof(f_idx) ){
16 /* Me aseguro de leer la cantidad de bytes correcta */
17 if (fread(®,sizeof(BLOCK_REG_T),1,f_idx) != 1) continue;
18 if ( reg.id_reg >= max )