GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
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
/*!
12
* \brief
13
*
14
* Returns:
15
* 1 if 'src' is exactly the same as 'dst'
16
* 0 if they differ
17
*
18
* \param src
19
* \param dst
20
* \return int
21
*/
22
23
int
datetime_is_same
(
const
DateTime
* src,
const
DateTime
*
dst
)
24
{
25
/* WARNING: doesn't allow for padding */
26
return
memcmp(src, dst,
sizeof
(
DateTime
)) == 0;
27
}
dst
char * dst
Definition:
lz4.h:599
datetime.h
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:23
DateTime
Definition:
datetime.h:17
lib
datetime
same.c
Generated on Tue Feb 14 2023 05:56:01 for GRASS GIS 8 Programmer's Manual by
1.8.13