X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/03906f9085993640c8cccdd07574d9b9c71209a0..3680858ed318cb5b0a2d742693766a0d5c5fc528:/tipo3/emufs.c diff --git a/tipo3/emufs.c b/tipo3/emufs.c index a06ad13..9883f70 100644 --- a/tipo3/emufs.c +++ b/tipo3/emufs.c @@ -7,6 +7,7 @@ #define EXT_TIPO3_DATA ".dat" #define EXT_TIPO3_DISP ".fsc" #define EXT_TIPO3_IDS ".idc" +#define EXT_TIPO3_EXTRA ".ids" char *str_dup(const char *s) { @@ -66,6 +67,11 @@ EMUFS *emufs_crear(const char *filename, char tipo, unsigned int tam_bloque, uns strcat(name, EXT_TIPO3_IDS); fp = fopen(name, "w"); fclose(fp); + + strcpy(name, filename); + strcat(name, EXT_TIPO3_EXTRA); + fp = fopen(name, "w"); + fclose(fp); break; default: free(tmp);