1 /*
2 Copyright (C) 2015-2021, Dirk Krause
3 SPDX-License-Identifier: BSD-3-Clause
4 */
5 
6 /*
7 	WARNING: This file was generated by the dkct program (see
8 	http://dktools.sourceforge.net/ for details).
9 	Changes you make here will be lost if dkct is run again!
10 	You should modify the original source and run dkct on it.
11 	Original source: dk4time.ctr
12 */
13 
14 /**	@file dk4time.c The dk4time module.
15 */
16 
17 
18 #include "dk4conf.h"
19 
20 #if	DK4_HAVE_ASSERT_H
21 #ifndef	ASSERT_H_INCLUDED
22 #include <assert.h>
23 #define	ASSERT_H_INCLUDED 1
24 #endif
25 #endif
26 
27 #include <libdk4c/dk4time.h>
28 
29 
30 
31 #if 0
32 static const char * const	dk4time_kw[] = {
33 /*  0 */	"0",
34 /*  1 */	" ",
35 /*  2 */	"-",
36 /*  3 */	":"
37 };
38 #endif
39 
40 
41 
42 void
dk4time_get(dk4_time_t * timer)43 dk4time_get(dk4_time_t *timer)
44 {
45 #if	DK4_USE_ASSERT
46   assert(NULL != timer);
47 #endif
48 #if DK4_ON_WINDOWS
49   (void)_time64(timer);
50 #else
51   (void)time(timer);
52 #endif
53 }
54 
55 
56 
57