home *** CD-ROM | disk | FTP | other *** search
- /* ========================================================================
- diskio.h
- ========================================================================
- */
-
- #ifdef DISKIO
- #ifndef DISKIOH
- #define DISKIOH
- typedef unsigned long ulong;
- typedef struct
- {
- char type;
- char flags;
- ulong length;
- ulong comment; /* offset to comment field */
- ulong comsiz;
- ulong misc; /* ..misc stuff */
- ulong miscsiz;
- ulong data; /* ..data field */
- ulong datasiz;
- } RT1HEADER;
- extern char fileExt[];
- VAL *writehead();
- extern char *strcpy(), *strcat();
- #define DEFMODE (O_WRONLY|O_CREAT|O_BINARY)
- #define TGAMODE (O_WRONLY|O_BINARY)
- #define FNAM(s,s1) strcat(strcpy((s),(s1)),fileExt)
- #define ANYFNAM(s,s1,ext) strcat(strcpy((s),(s1)),(ext))
- #endif
- #endif
-