]> git.llucax.com Git - z.facultad/75.06/emufs.git/blobdiff - emufs/idx.c
* bugfixes
[z.facultad/75.06/emufs.git] / emufs / idx.c
index bd20b63070233247ae9b77d76d28986d87a6a93b..06cb8246b2d2b95763528d0bb4c5106f7ff57640 100644 (file)
@@ -38,6 +38,7 @@
 #include "idx.h"
 #include "did.h"
 #include "error.h"
 #include "idx.h"
 #include "did.h"
 #include "error.h"
+#include "common.h"
 #include <stdlib.h>
 #include <strings.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <strings.h>
 #include <unistd.h>
@@ -278,3 +279,12 @@ int emufs_idx_actualizar(EMUFS *emu, int ID, EMUFS_BLOCK_ID bloque)
        fclose(f_idx);
        return 0;
 }
        fclose(f_idx);
        return 0;
 }
+
+long emufs_idx_get_file_size(EMUFS* efs, int* err)
+{
+       char name[255];
+       strcpy(name, efs->nombre);
+       strcat(name, EMUFS_IDX_EXT);
+       return emufs_common_get_file_size(name, err);
+}
+