copy.c 461 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (C) 1995. Bill Brown <brown@gis.uiuc.edu> & Michael Shapiro
  3. *
  4. * This program is free software under the GPL (>=v2)
  5. * Read the file GPL.TXT coming with GRASS for details.
  6. */
  7. #include <string.h>
  8. #include <grass/datetime.h>
  9. /*!
  10. * \brief
  11. *
  12. * Copies the DateTime [into/from ???] src
  13. *
  14. * \param dst
  15. * \param src
  16. * \return void
  17. */
  18. void datetime_copy(DateTime * dst, const DateTime * src)
  19. {
  20. memcpy(dst, src, sizeof(DateTime));
  21. }