home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │jzdirect.h │
- │Provide a nucleus of structures to hold the directory information │
- │ │
- │See dirlst.dmo for examples │
- │ │
- │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
- └────────────────────────────────────────────────────────────────────────────┘
- */
-
- /* misc directory structures */
-
- struct tdirtime {
- unsigned secs : 5; /* time in 2 sec. int (5 bits)*/
- unsigned mins : 6; /* minutes (6 bits) */
- unsigned hours : 5; /* hours (5 bits) */
- };
-
- struct tdirdate {
- unsigned day : 5; /* day of month (5 bits) */
- unsigned month : 4; /* month (4 bits) */
- unsigned year : 7; /* year since 1980 (7 bits) */
- };
-
- struct tdir
- {
- char dirfiller[21];
- unsigned char attr; /* file attribute */
- struct tdirtime time; /* creation time */
- struct tdirdate date; /* creation date */
- long size; /* file size */
- char name[13]; /* file name */
- };
- #define TDIR struct tdir
-