#include "did.h"
#include "error.h"
+#include "common.h"
#include <unistd.h>
-#include <sys/types.h>
#include <string.h>
int emufs_did_crear(EMUFS* efs)
char name_f_did[255];
strcpy(name_f_did, efs->nombre);
- strcat(name_f_did, EMUFS_DID_EXT);
+ strcat(name_f_did, EMUFS_DID_EXT);
if ( (f_did = fopen(name_f_did,"a+")) == NULL) return -1;
fwrite(&n_regid, sizeof(EMUFS_REG_ID), 1, f_did);
return 0;
}
+long emufs_did_get_file_size(EMUFS* efs, int* err)
+{
+ char name[255];
+ strcpy(name, efs->nombre);
+ strcat(name, EMUFS_DID_EXT);
+ return emufs_common_get_file_size(name, err);
+}
+