Heellllo
How do we display time in linux with c/c++.
i tried the follg.
time_t *t ;
time(t);
printf(" %s" ,ctime(t));
..but am getting SEGMENTATION FAULT...
How else can i do it? Please Help.
hashir
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://ganesh.iwpcp.com/pipermail/mailinglist_ilug-cochin.org/attachments/20040223/56fb0a20/attachment.htm
From [EMAIL PROTECTED] Mon Feb 23 23:52:18 2004
From: [EMAIL PROTECTED] (Muhammed sabir)
Date: Mon Feb 23 23:52:22 2004
Subject: [Mailinglist] diplay time with c/c++ ?????
In-Reply-To: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
i think u have to change "%s" with "%,24s"
time_t *t ;
> time(t);
> printf("%,24s\r\n" ,ctime(t));
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools