-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathARCHIVOS.H
43 lines (38 loc) · 1005 Bytes
/
ARCHIVOS.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/****************************************************************************/
/* ARCHIVOS.H */
/****************************************************************************/
#include "discat.def"
#define ARCHIVOS
/* Declaramos la estructura de la base de datos */
struct archivos {
char nombre[9];
char extension[4];
char path[21];
unsigned long longitud;
union {
unsigned word;
struct {
unsigned int dia : 5;
unsigned int mes : 4;
unsigned int year : 7;
} fecha;
} fecha;
union {
unsigned word;
struct {
unsigned int segundos : 5;
unsigned int minutos : 6;
unsigned int horas : 5;
} hora;
} hora;
char atributos;
};
struct discos {
unsigned long byteslibres;
char nota[31];
struct archivos archivo[MAXFICHPORDISCO+1];
};
/* Prototypes de las funciones en ARCHIVOS.C */
void load(char *nombrearchivo);
void save(char *nombrearchivo);
void ordenar(void);