GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
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 
23 {
24  /* WARNING: doesn't allow for padding */
25  return memcmp(src, dst, sizeof(DateTime)) == 0;
26 }
char * dst
Definition: lz4.h:981
const char * src
Definition: lz4.h:989
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