home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / GRLF-C-2.ZIP / GFUNC / COPYTIME.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-30  |  763 b   |  39 lines

  1. /*
  2.  * copytime.c
  3.  * contains: copytime()
  4.  *
  5.  */
  6.  
  7. #include <stdio.h>
  8. #include <string.h>
  9. #include "gfuncts.h"
  10.  
  11. /*
  12.  *  void
  13.  * copytime(to,from)
  14.  *
  15.  * ARGUMENT
  16.  *  (struct TIMEDATE *)    to    -    points to destination
  17.  *  (struct TIMEDATE *)    from    -    points to source
  18.  *
  19.  * DESCRIPTION
  20.  *  This function copies one instance of a TIMEDATE structure variable
  21.  *  to another.
  22.  *
  23.  * AUTHOR
  24.  *   Copyright (C)1987-1990 Greenleaf Software Inc. All Rights Reserved.
  25.  */
  26. void GF_CONV copytime(to,from)
  27. struct TIMEDATE *to,*from;
  28. {
  29.  
  30.     to->year=from->year;
  31.     to->month= from->month;
  32.     to->day=from->day;
  33.     to->hours=from->hours;
  34.     to->minutes=from->minutes;
  35.     to->seconds=from->seconds;
  36.     to->hsecs= from->hsecs;
  37.     strcpy(to->dateline,from->dateline);
  38. }
  39.