source: libcf/trunk/include/cf_util.h@ 151

Last change on this file since 151 was 151, checked in by cheese, 11 years ago

#1 fix interface and add util module

File size: 726 bytes
Line 
1/**
2 * \file cf_util.h
3 *
4 * \author myusgun <myusgun@gmail.com>
5 *
6 * \brief 유틸
7 *
8 * \example util.c
9 */
10#ifndef __CF_UTIL_H__
11#define __CF_UTIL_H__
12
13#include "cf_base.h"
14
15#define CF_UTIL_DATETIME_LENGTH (sizeof ("0000-00-00 00:00:00.000") - 1)
16
17typedef struct __cf_util_datetime__
18{
19 int year;
20 int month;
21 int day;
22 int week; /* SUN:0 ~ SAT:6 */
23
24 int hour;
25 int min;
26 int sec;
27 int usec;
28} CF_UTIL_DATETIME;
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34CF_EXPORT int
35CF_Util_GetSystemError (void);
36
37CF_EXPORT int
38CF_Util_GetCurrentTime (CF_UTIL_DATETIME * dt);
39
40CF_EXPORT int
41CF_Util_GetTimeString (const CF_UTIL_DATETIME * dt,
42 char * buffer);
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif // #ifndef __CF_UTIL_H__
Note: See TracBrowser for help on using the repository browser.