About using ctime

P

parag_paul

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top