Hello
Am Still getting SEGMENTATION FAULT. Could some1 please tell me what
Segmentation Fault means?
I tried  a diff approach and it worked fine.

time_t  t ;
t = time( 0 );
printf ( " %s ", ctime(t));

Now it complied fine..Does Segmentation Fault occur only whn we use
pointers???? Hav encountered SEG FLT many times..still havg no idea what it
is!!!

Thankz a LOT
hashir



> On Mon, Feb 23, 2004 at 10:22:18AM -0800, Muhammed sabir wrote:
> >
> > i think u have to change "%s"  with "%,24s"
> > time_t  *t ;
> > > time(t);
> > > printf("%,24s\r\n" ,ctime(t));
>
> remove the coma after the %.
>
> printf(%24s\r\n", ctime(t));
>
> with regards
> M.Balakrishna Pillai
>


Reply via email to