GRASS GIS 8 Programmer's Manual
8.4.1(2025)-45ca3179ab
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
22
int
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
}
datetime_is_same
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
datetime
same.c
Generated on Sat Jun 21 2025 21:07:27 for GRASS GIS 8 Programmer's Manual by
1.13.2