Simple C question

Kurt Wall kwall
Fri Jan 14 12:50:08 PST 2005


On Fri, Jan 14, 2005 at 10:06:15AM -0500, Bruce Marshall took 48 lines to write:
> On Friday 14 January 2005 09:03 am, Kurt Wall wrote:
> >
> > int main()
> > {
> > 	time_t now;
> >
> > 	time(&now);
> > 	printf("%s", ctime(&now));
> > 	return 0;
> > }
> >
> > You can also do something like asctime(localtime(&now));. Note that ctime()
> > appends the terminating newline ('\n'), so you don't need to include it
> > in your format string.
> 
> Hmmm  probably could have dug that out of a book I have here written by 
> someone named Wall....   :-)

That guy? He's a wanker. ;-)

Kurt
-- 
"The sooner all the animals are dead, the sooner we'll find their
money."
	-- Ed Bluestone, "The National Lampoon"


More information about the Linux-users mailing list