]> git.llucax.com Git - z.facultad/75.06/emufs.git/blobdiff - emufs/idx.c
cambio los printf por PERR
[z.facultad/75.06/emufs.git] / emufs / idx.c
index a46c46b77f07bfe150662cddb4607912ae7c0943..f465d208635742bf99e1e4aa87c107da08bc0510 100644 (file)
@@ -261,18 +261,3 @@ EMUFS_REG_ID emufs_idx_get_id_at(EMUFS *emu, long pos)
 
        return id.id_reg;
 }
 
        return id.id_reg;
 }
-
-int emufs_idx_get_cant_reg(EMUFS* emu)
-{
-       FILE *fp;
-       char name_f_idx[255];
-       long cant;      
-       strcpy(name_f_idx,emu->nombre);
-       strcat(name_f_idx, EMUFS_IDX_EXT);
-
-       if ( (fp = fopen(name_f_idx, "r")) == NULL ) return -1;/*EMUFS_NOT_FOUND*/;
-       fseek(fp, 0, SEEK_END);
-       cant = ftell(fp)/sizeof(EMUFS_IDX);     
-       fclose(fp);
-       return cant;
-}