[ale] calling fini

Chris Fowler ChrisF at computone.com
Fri Mar 9 11:32:29 EST 2001





I ca'nt reporduce it either.  I only get this problem under  RH 7.0 not 6.2?


Weired?


Chris



-----Original Message-----
From: James Kinney [mailto:jkinney at localnetsolutions.com]
To: ale at ale.org
Sent: Friday, March 09, 2001 11:25 AM
To: Chris Fowler
Cc: 'mic at mathcs.emory.edu'; 'ale at ale.org'
Subject: RE: [ale] calling fini



double check your time.h. I can't reproduce your fini error.


James P. Kinney III   \Changing the mobile computing world/
President and COO      \          one Linux user         /
Local Net Solutions,LLC \           at a time.          /
770-493-8244             \.___________________________./


On Fri, 9 Mar 2001, Chris Fowler wrote:


> Here is update code and stil getting: calling fini:
> 
> #include <time.h>
> 
> int
> main(void)
> {
>       int hour = 0;
>       int minutes = 0;
>       int seconds = 0;
>       char amp ='a';
>       time_t *timet;
>       struct tm *buf;
> 
>       time(timet);
>       buf = localtime(timet);
> 
>       hour = buf->tm_hour;
>       minutes = buf->tm_min;
>       seconds = buf->tm_sec;
> 
>       if ( hour > 12 )
>       {
>               hour = hour - 12;
>               amp = 'p';
>       }
> 
>       printf("%02d:%02d:%02d%c\n", hour,minutes,seconds, amp);
>       return 0;
> }
> 
> -----Original Message-----
> From: mic at mathcs.emory.edu [mailto:mic at mathcs.emory.edu]
> Sent: Friday, March 09, 2001 11:11 AM
> To: ChrisF at computone.com
> Subject: Re: [ale] calling fini
> 
> 
> >     char *test ='\0';
> 
> C sillently promotes '\0' to 0 (NULL).  You probably want:
> 
>       char *test = "\0";
> 


--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.







More information about the Ale mailing list