c urgent doubt.. pls help
Posted on 2004-09-26
I have an API function which accepts time_t datatype parameter. I am giving this time as a command line argument. so I am accepting time as char* datatype, and then converted it using
ptime = (time_t)iTime;
iTime is char* datatype. But my pTime (type time_t) is not working........
But when I am giving the time hardcoded ino the API function its working.........I printed the iTime, and I got the same time ( its unix timestamp) as I entered in command line. But when I give pTime to the API function its not working. THe API function only takes time_t paramter for processing.. Please help. Early responses in grealty appreciated.........