create your own time stamp 2 Posted on September 27th
From my previous post, create your own time stamp, I have introduced a way to construct your own time stamp.
Recently I found a better way, and with this function, you can create a better time stamp, yet the way of construct the time stamp is far more simple compared to my previous post.
Yes, that’s it, and the output is show as below:
Wed, 26 Sep 2007 23:54:50 +0800
Trackback URL

Nice example. But i get warnings on its compilation:
warning: assignment makes pointer from integer without a cast
warning: incompatible implicit declaration of built-in function ‘strftime’.
GCC version is gcc (GCC) 4.1.1 (Gentoo 4.1.1-r1 p1.7.1).
What is wrong?
Commented Norbert on February 22nd, 2008.it’s most probably due to a cast problem.
The strftime’s prototype is :
size_t strftime(char *s, size_t maxsize, const char *format, const struct tm *timptr);
Hope this will help.
Commented rouisk on August 21st, 2008.