#define EXT_TIPO3_ID ".id3"
#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)
{
fwrite(&tam_bloque, sizeof(unsigned int), 1, fp);
fwrite(&tam_reg, sizeof(unsigned int), 1, fp);
fclose(fp);
+
+ strcpy(name, filename);
+ strcat(name, EXT_TIPO3_ID);
+ fp = fopen(name, "w");
+ fclose(fp);
+
+ strcpy(name, filename);
+ strcat(name, EXT_TIPO3_DISP);
+ fp = fopen(name, "w");
+ fclose(fp);
+
+ strcpy(name, filename);
+ 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);