From: Nicolás Dimov Date: Mon, 5 Apr 2004 23:57:31 +0000 (+0000) Subject: un change mas en la extension X-Git-Tag: svn_import_r684~622 X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/commitdiff_plain/885b60b3ea2aed49543ea87490ff971a68a5c2f1?hp=7cd2e930f9665432a3bfa725b90bf3c0a3cb5617 un change mas en la extension --- diff --git a/tipo3/param_cte.c b/tipo3/param_cte.c index be8cb77..149ece6 100644 --- a/tipo3/param_cte.c +++ b/tipo3/param_cte.c @@ -50,14 +50,14 @@ int leer_registro(EMUFS *emu, int ID, void *ptr, unsigned long tam_reg) } -/*busco el ID en el archivo xxxxx.ids, para ver si puedo usar ese ID.*/ +/*busco el ID en el archivo xxxxx.did, para ver si puedo usar ese ID.*/ int existe_registro(EMUFS *emu, int ID) { FILE* f_reg_exist; int reg; char name_f_reg_exist[255]; strcpy(name_f_reg_exist,emu->nombre); - strcat(name_f_reg_exist,".ids"); + strcat(name_f_reg_exist,".did"); if ( (f_reg_exist = fopen(name_f_reg_exist,"r")) == NULL) return -1; /*ERROR*/ while ( !feof(f_reg_exist) ){ fread(®,sizeof(int),1,f_reg_exist); @@ -281,7 +281,7 @@ int get_id(EMUFS *emu) strcat(name_f_block_reg,".idx"); strcpy(name_f_reg_exist,emu->nombre); - strcat(name_f_reg_exist,".ids"); + strcat(name_f_reg_exist,".did"); if ( (f_reg_exist = fopen(name_f_reg_exist,"r")) == NULL) return -1; /*ERROR*/ fseek(f_reg_exist, 0, SEEK_END);