home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / LO241SRV.ZIP / include / STAMP.H < prev    next >
C/C++ Source or Header  |  1992-02-15  |  3KB  |  74 lines

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *  MSGAPI Source Code, Version 2.00                                       *
  4.  *  Copyright 1989-1991 by Scott J. Dudley.  All rights reserved.          *
  5.  *                                                                         *
  6.  *  Bitmapped date union                                                   *
  7.  *                                                                         *
  8.  *  For complete details of the licensing restrictions, please refer to    *
  9.  *  the licence agreement, which is published in its entirety in           *
  10.  *  README.1ST.                                                            *
  11.  *                                                                         *
  12.  *  USE OF THIS FILE IS SUBJECT TO THE RESTRICTIONS CONTAINED IN THE       *
  13.  *  MSGAPI LICENSING AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF THIS       *
  14.  *  AGREEMENT IN ANY OF THE AFOREMENTIONED FILES, OR IF YOU DO NOT HAVE    *
  15.  *  THESE FILES, YOU SHOULD IMMEDIATELY CONTACT THE AUTHOR AT ONE OF THE   *
  16.  *  ADDRESSES LISTED BELOW.  IN NO EVENT SHOULD YOU PROCEED TO USE THIS    *
  17.  *  FILE WITHOUT HAVING ACCEPTED THE TERMS OF THE MSGAPI LICENSING         *
  18.  *  AGREEMENT, OR SUCH OTHER AGREEMENT AS YOU ARE ABLE TO REACH WITH THE   *
  19.  *  AUTHOR.                                                                *
  20.  *                                                                         *
  21.  *  You can contact the author at one of the address listed below:         *
  22.  *                                                                         *
  23.  *  Scott Dudley           FidoNet  1:249/106                              *
  24.  *  777 Downing St.        Internet f106.n249.z1.fidonet.org               *
  25.  *  Kingston, Ont.         BBS      (613) 389-8315   HST/14.4k, 24hrs      *
  26.  *  Canada - K7M 5N3                                                       *
  27.  *                                                                         *
  28.  ***************************************************************************/
  29.  
  30. /* $Id: stamp.h_v 1.0 1991/11/16 16:16:51 sjd Rel sjd $ */
  31.  
  32. #ifndef __STAMP_H_DEFINED
  33. #define __STAMP_H_DEFINED
  34.  
  35. #include "typedefs.h"
  36.  
  37. struct _stamp2   /* DOS-style datestamp */
  38. {
  39.   struct
  40.   {
  41.     unsigned int da : 5;
  42.     unsigned int mo : 4;
  43.     unsigned int yr : 7;
  44.   } date;
  45.  
  46.   struct
  47.   {
  48.     unsigned int ss : 5;
  49.     unsigned int mm : 6;
  50.     unsigned int hh : 5;
  51.   } time;
  52. };
  53.  
  54.  
  55. struct _dos_st
  56. {
  57.   word date;
  58.   word time;
  59. };
  60.  
  61. /* Union so we can access stamp as "int" or by individual components */
  62.  
  63. union stamp_combo   
  64. {
  65.   dword ldate;
  66.   struct _stamp2 msg_st;
  67.   struct _dos_st dos_st;
  68. };
  69.  
  70. typedef union stamp_combo SCOMBO;
  71.  
  72. #endif /* __STAMP_H_DEFINED */
  73.  
  74.