X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/558540cc250c19c9617a3f3f12a0f5da38c9c84a..fbef24da0ffefaa1ff6d6116d6c03197e862b9a5:/emufs/idx.c diff --git a/emufs/idx.c b/emufs/idx.c index a46c46b..f465d20 100644 --- a/emufs/idx.c +++ b/emufs/idx.c @@ -261,18 +261,3 @@ EMUFS_REG_ID emufs_idx_get_id_at(EMUFS *emu, long pos) 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; -}