diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-25 12:36:25 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-25 12:36:25 +0800 |
commit | 78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88 (patch) | |
tree | 437f96f3c6e2547b8b816d77ecd9337aadadf048 /mbbsd/stuff.c | |
parent | 73bf6bd6489ef38af4df15ab768bc50744785fdf (diff) | |
download | pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.gz pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.bz2 pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.lz pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.xz pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.tar.zst pttbbs-78bb7c4b8790fc1b5f47adb84a8b228fb65b3a88.zip |
use ctime4 for compat on x86_64
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2430 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r-- | mbbsd/stuff.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index 569bddc0..945c0ded 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -499,6 +499,14 @@ gettime(int line, time4_t dt, char*head) #endif char * +ctime4(time4_t *clock) +{ + time_t temp = (time_t)*clock; + + return ctime(&temp); +} + +char * Cdate(time4_t *clock) { static char foo[32]; |