home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / TBANK107.ZIP / TBSAFE.C < prev   
Encoding:
C/C++ Source or Header  |  1991-09-28  |  476 b   |  17 lines

  1. #include <stdio.h>
  2. #include <dos.h>
  3. #include "vardec.h"
  4.  
  5. userrec *u;
  6. configrec *c;
  7.  
  8. void main()
  9.   {
  10.   printf("\n\n");
  11.   printf("Used Offset is   %d (Normally 624) \n",FP_OFF(&(u->timeontoday))-FP_OFF(u->name));
  12.   printf("Time Offset is   %d (Normally 628) \n",FP_OFF(&(u->extratime))-FP_OFF(u->name));
  13.   printf("Gold Offset is   %d (Normally 644) \n",FP_OFF(&(u->gold))-FP_OFF(u->name));
  14.   printf("Record Length is %d (Normally 700) \n",sizeof(userrec));
  15.  
  16.   }
  17.