1 |
dashley |
11 |
//----------------------------------------------------------------------------------------------------
|
2 |
|
|
//$Header: /home/dashley/cvsrep/e3ft_gpl01/e3ft_gpl01/dtaipubs/cron/2010/blackjack_201010/source/bjcceval/timefunc.h,v 1.2 2012/03/30 01:05:31 dashley Exp $
|
3 |
|
|
//----------------------------------------------------------------------------------------------------
|
4 |
|
|
//Copyright (C) 2012, David T. Ashley.
|
5 |
|
|
//
|
6 |
|
|
//This file is part of BJCCEVAL, a program that evaluates by simulation
|
7 |
|
|
//the best basic strategy, card-counting, and other playing strategies
|
8 |
|
|
//for several variants of the game of Blackjack.
|
9 |
|
|
//
|
10 |
|
|
//BJCCEVAL is free software: you can redistribute it and/or modify
|
11 |
|
|
//it under the terms of the GNU General Public License as published by
|
12 |
|
|
//the Free Software Foundation, either version 3 of the License, or
|
13 |
|
|
//(at your option) any later version.
|
14 |
|
|
//
|
15 |
|
|
//BJCCEVAL is distributed in the hope that it will be useful,
|
16 |
|
|
//but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17 |
|
|
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18 |
|
|
//GNU General Public License for more details.
|
19 |
|
|
//
|
20 |
|
|
//You should have received a copy of the GNU General Public License
|
21 |
|
|
//along with this program. If not, see <http://www.gnu.org/licenses/>.
|
22 |
|
|
//(A copy of the GNU General Public License, Version 3 is provided in
|
23 |
|
|
//the file "COPYING" distributed with BJCCEVAL.)
|
24 |
|
|
//
|
25 |
|
|
//David T. Ashley can be contacted at DASHLEY@GMAIL.COM and/or at
|
26 |
|
|
//P.O. Box 918, Marshall MI 49068.
|
27 |
|
|
//----------------------------------------------------------------------------------------------------
|
28 |
|
|
#ifndef TIMEFUNC_H_INCLUDED
|
29 |
|
|
#define TIMEFUNC_H_INCLUDED
|
30 |
|
|
|
31 |
|
|
#include <stdio.h>
|
32 |
|
|
|
33 |
|
|
#ifdef MODULE_TIMEFUNC
|
34 |
|
|
#define DECMOD_TIMEFUNC
|
35 |
|
|
#else
|
36 |
|
|
#define DECMOD_TIMEFUNC extern
|
37 |
|
|
#endif
|
38 |
|
|
|
39 |
|
|
//Guaranteed to be long enough for longest result from any function that specifies
|
40 |
|
|
//this as a return value.
|
41 |
|
|
typedef struct
|
42 |
|
|
{
|
43 |
|
|
char result[35]; //Zero terminated by any function that specifies it as output.
|
44 |
|
|
} TIMEFUNC_TIME_ASCII_RESULT;
|
45 |
|
|
|
46 |
|
|
DECMOD_TIMEFUNC void TIMEFUNC_to_ascii_logstamp(const struct __timeb64 *in_arg, TIMEFUNC_TIME_ASCII_RESULT *out_arg);
|
47 |
|
|
DECMOD_TIMEFUNC void TIMEFUNC_to_ascii_hr_form(const struct __timeb64 *in_arg, TIMEFUNC_TIME_ASCII_RESULT *out_arg);
|
48 |
|
|
DECMOD_TIMEFUNC void TIMEFUNC_to_ascii_filename_base(const struct __timeb64 *in_arg, TIMEFUNC_TIME_ASCII_RESULT *out_arg);
|
49 |
|
|
|
50 |
|
|
DECMOD_TIMEFUNC const char *TIMEFUNC_Vcinfo_C(void);
|
51 |
|
|
DECMOD_TIMEFUNC const char *TIMEFUNC_Vcinfo_H(void);
|
52 |
|
|
|
53 |
|
|
#define TIMEFUNC_VCINFO_H "$Revision: 1.2 $"
|
54 |
|
|
|
55 |
|
|
#endif
|
56 |
|
|
|
57 |
|
|
//----------------------------------------------------------------------------------------------------
|
58 |
|
|
//$Log: timefunc.h,v $
|
59 |
|
|
//Revision 1.2 2012/03/30 01:05:31 dashley
|
60 |
|
|
//Edits.
|
61 |
|
|
//
|
62 |
|
|
//Revision 1.1 2012/03/30 00:59:16 dashley
|
63 |
|
|
//Initial checkin.
|
64 |
|
|
//----------------------------------------------------------------------------------------------------
|
65 |
|
|
//End of $RCSfile: timefunc.h,v $
|
66 |
|
|
//----------------------------------------------------------------------------------------------------
|