X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/a7a781b6b1a260c882ad779a9ecdaa517d1a6846..38e8783579e4b158b1fced1caec93e16ae05afc4:/emufs/did.c diff --git a/emufs/did.c b/emufs/did.c index 90a200b..407b123 100644 --- a/emufs/did.c +++ b/emufs/did.c @@ -20,6 +20,7 @@ *---------------------------------------------------------------------------- * Creado: jue abr 8 18:07:57 ART 2004 * Autores: Nicolás Dimov + * Leandro Lucarella *---------------------------------------------------------------------------- * * $Id$ @@ -39,6 +40,11 @@ #include #include +int emufs_did_crear(EMUFS* efs) +{ + return emufs_crear_archivo_auxiliar(efs->nombre, EMUFS_DID_EXT); +} + int emufs_did_get_last(EMUFS *emu) { FILE * f_did; @@ -46,7 +52,7 @@ int emufs_did_get_last(EMUFS *emu) char name_f_did[255]; strcpy(name_f_did, emu->nombre); - strcat(name_f_did, EMUFS_DID_EXT); + strcat(name_f_did, EMUFS_DID_EXT); if ( (f_did = fopen(name_f_did,"r")) == NULL) return -1; /*ERROR*/ fseek(f_did, 0, SEEK_END);