GRASS GIS 8 Programmer's Manual 8.3.2(2024)-exported
Loading...
Searching...
No Matches
same.c
Go to the documentation of this file.
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/*!
11 * \brief
12 *
13 * Returns:
14 * 1 if 'src' is exactly the same as 'dst'
15 * 0 if they differ
16 *
17 * \param src
18 * \param dst
19 * \return int
20 */
21
22int datetime_is_same(const DateTime *src, const DateTime *dst)
23{
24 /* WARNING: doesn't allow for padding */
25 return memcmp(src, dst, sizeof(DateTime)) == 0;
26}
int datetime_is_same(const DateTime *src, const DateTime *dst)
Returns: 1 if 'src' is exactly the same as 'dst' 0 if they differ.
Definition same.c:22