#include "idx.h"
#include "did.h"
#include "error.h"
+#include "common.h"
#include <stdlib.h>
#include <strings.h>
#include <unistd.h>
filename = (char*) malloc(sizeof(char) * (strlen(efs->nombre)
+ strlen(EMUFS_IDX_EXT) + 1));
if (filename == NULL) {
- /* TODO Manejo de errores */
return NULL;
}
strcpy(filename, efs->nombre);
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);
+}
+