Rev | Line | |
---|
[151] | 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 |
|
---|
| 17 | typedef 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
|
---|
| 31 | extern "C" {
|
---|
| 32 | #endif
|
---|
| 33 |
|
---|
| 34 | CF_EXPORT int
|
---|
| 35 | CF_Util_GetSystemError (void);
|
---|
| 36 |
|
---|
| 37 | CF_EXPORT int
|
---|
| 38 | CF_Util_GetCurrentTime (CF_UTIL_DATETIME * dt);
|
---|
| 39 |
|
---|
| 40 | CF_EXPORT int
|
---|
| 41 | CF_Util_GetTimeString (const CF_UTIL_DATETIME * dt,
|
---|
[152] | 42 | char * str);
|
---|
[151] | 43 |
|
---|
| 44 | #ifdef __cplusplus
|
---|
| 45 | }
|
---|
| 46 | #endif
|
---|
| 47 |
|
---|
| 48 | #endif // #ifndef __CF_UTIL_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.