libtime++: Date and time calculation
ctime_add.c
Go to the documentation of this file.
1
/* this is <ctime_add.c>
2
* ----------------------------------------------------------------------------
3
*
4
* Copyright 2000 by Thomas Forbriger (IfG Stuttgart)
5
*
6
* ----
7
* libtime is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
* ----
21
*
22
* C-wrapper for FORTRAN time_add libtime kernel function
23
*
24
* REVISIONS and CHANGES
25
* 06/08/2000 V1.0 Thomas Forbriger
26
* 17/12/2007 V1.1 discarded time_Tu::farray
27
*
28
* ============================================================================
29
*/
30
31
#include <
libtime.h
>
32
33
void
time_add
(
time_Ts
Date1,
time_Ts
Date2,
time_Ts
*Pdate3)
34
{
35
time_Tu
*u1;
36
time_Tu
*u2;
37
time_Tu
*u3;
38
extern
int
time_add__();
39
u1=(
time_Tu
*)&Date1;
40
u2=(
time_Tu
*)&Date2;
41
u3=(
time_Tu
*)Pdate3;
42
time_add__(&u1->
array
, &u2->
array
, &u3->
array
);
43
}
/* time_add */
44
45
/* ----- END OF ctime_add.c ----- */
time_Tu::array
integer array[7]
Definition:
libtime.h:136
time_add
void time_add(time_Ts Date1, time_Ts Date2, time_Ts *Pdate3)
Definition:
ctime_add.c:33
time_Tu
Definition:
libtime.h:135
libtime.h
time_Ts
Definition:
libtime.h:121
Cwrapper
ctime_add.c
Generated on Mon Aug 21 2023 17:36:10 for libtime++: Date and time calculation by
1.8.14