*----------------------------------------------------------------------------
* Creado: jue abr 8 18:07:57 ART 2004
* Autores: Nicolás Dimov <sagardua@uolsinectis.com.ar>
*----------------------------------------------------------------------------
* Creado: jue abr 8 18:07:57 ART 2004
* Autores: Nicolás Dimov <sagardua@uolsinectis.com.ar>
-int emufs_did_get_last(EMUFS *emu)
+int emufs_did_crear(EMUFS* efs)
+{
+ return emufs_crear_archivo_auxiliar(efs->nombre, EMUFS_DID_EXT);
+}
+
+EMUFS_REG_ID emufs_did_get_last(EMUFS *emu)
if ( (f_did = fopen(name_f_did,"r")) == NULL) return -1; /*ERROR*/
fseek(f_did, 0, SEEK_END);
if ( (f_did = fopen(name_f_did,"r")) == NULL) return -1; /*ERROR*/
fseek(f_did, 0, SEEK_END);
if ( (f_did = fopen(name_f_did,"a+")) == NULL) return -1;
fwrite(&ID, sizeof(int), 1, f_did);
if ( (f_did = fopen(name_f_did,"a+")) == NULL) return -1;
fwrite(&ID, sizeof(int), 1, f_did);