Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > About using ctime

Thread Tools

About using ctime
Posts: n/a
I am try ing to use ctime with the type time_t ,

I used

time_t t = time(0);
char* sc = ctime( &t);
printf ("%s\n", sc);


it crashes for 64 bit compilations but does file with gcc -m32,

Is there a any fix to this problem, I am searching for a 64 bit
compatible definition for ctime , is it available by default
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
who do know std::ctime() how implement? Help me? wukexin C++ 1 05-25-2005 01:44 PM
ctime Help Kevin C++ 3 05-16-2004 04:09 PM
Undestanding proper ctime and clock() usage. Oplec C++ 2 10-25-2003 11:42 PM
Question about ctime Tivo Escobar C++ 1 07-23-2003 07:29 PM
replacement for <ctime>? Ernst Murnleitner C++ 8 07-20-2003 02:40 AM