GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
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.h
dst
char * dst
Definition:
lz4.h:981
src
const char * src
Definition:
lz4.h:989
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
Definition:
datetime.h:17
lib
datetime
same.c
Generated on Sun Dec 22 2024 07:38:20 for GRASS GIS 8 Programmer's Manual by
1.9.1