1 /* _PDCLIB_init_ttinfo( struct ttinfo *, int_fast32_t, bool, int )
2 
3    This file is part of the Public Domain C Library (PDCLib).
4    Permission is granted to use, modify, and / or redistribute at will.
5 */
6 
7 #ifndef REGTEST
8 
9 #include "pdclib/_PDCLIB_tzcode.h"
10 
11 /* Initialize *S to a value based on UTOFF, ISDST, and DESIGIDX.  */
_PDCLIB_init_ttinfo(struct ttinfo * s,int_fast32_t utoff,bool isdst,int desigidx)12 void _PDCLIB_init_ttinfo( struct ttinfo * s, int_fast32_t utoff, bool isdst, int desigidx )
13 {
14     s->utoff = utoff;
15     s->isdst = isdst;
16     s->desigidx = desigidx;
17     s->ttisstd = false;
18     s->ttisut = false;
19 }
20 
21 #endif
22 
23 #ifdef TEST
24 
25 #include "_PDCLIB_test.h"
26 
main(void)27 int main( void )
28 {
29 #ifndef REGTEST
30 #endif
31 
32     return TEST_RESULTS;
33 }
34 
35 #endif
36