home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / directry / fff320 / lzh.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-06  |  776 b   |  44 lines

  1. #ifdef MAIN
  2.     #define EXTERN
  3. #else
  4.     #define EXTERN extern
  5. #endif
  6.  
  7. #ifndef DOS_DATE
  8. #define DOS_DATE
  9. typedef union {
  10.     unsigned u;
  11.     struct {
  12.         unsigned Day : 5;
  13.         unsigned Month : 4;
  14.         unsigned Year  : 7;
  15.         } b;
  16.     } DOS_FILE_DATE;
  17. #endif
  18.  
  19. #ifndef DOS_TIME
  20. #define DOS_TIME
  21. typedef union {
  22.     unsigned u;
  23.     struct {
  24.         unsigned Second : 5;
  25.         unsigned Minute : 6;
  26.         unsigned Hour   : 5;
  27.         } b;
  28.     } DOS_FILE_TIME;
  29. #endif
  30.  
  31. typedef struct {
  32.     unsigned char HeadSize;
  33.     unsigned char ChkSum;
  34.     char Method[5];
  35.     unsigned long CompressedSize;
  36.     unsigned long OriginalSize;
  37.     DOS_FILE_TIME Time;
  38.     DOS_FILE_DATE Date;
  39.     unsigned Attrib;
  40.     unsigned char FileNameLength;
  41.     } LZH_HEADER;
  42.  
  43. void DoLzh (char *Path);
  44. int GetEntry (FILE *LzhFile, LZH_HEADER *LzhDir);