X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/7a86d06abb03ced86951067cf341f228acfc9f30..a73a4c8cb85f03d9863db77f85adb4db42a91286:/emufs/did.c?ds=inline diff --git a/emufs/did.c b/emufs/did.c index 939493b..90a200b 100644 --- a/emufs/did.c +++ b/emufs/did.c @@ -36,6 +36,8 @@ */ #include "did.h" +#include +#include int emufs_did_get_last(EMUFS *emu) { @@ -44,7 +46,7 @@ int emufs_did_get_last(EMUFS *emu) char name_f_did[255]; strcpy(name_f_did, emu->nombre); - strcat(name_f_did, ".did"); + 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); @@ -76,7 +78,7 @@ int emufs_did_agregar(EMUFS *emu, int ID) char name_f_did[255]; strcpy(name_f_did, emu->nombre); - strcat(name_f_did, ".did"); + strcat(name_f_did, EMUFS_DID_EXT); if ( (f_did = fopen(name_f_did,"a+")) == NULL) return -1; fwrite(&ID, sizeof(int), 1, f_did);