Am Mittwoch, 25. Mai 2011 schrieb Enrico Forestieri:
> On Wed, May 25, 2011 at 03:08:16PM +0200, Kornel wrote:
> > Am Mittwoch, 25. Mai 2011 schrieb Enrico Forestieri:
> > > int main()
> > > {
> > > 
> > >     printf("result: %d\n", afunc());
> > >     return 0;
> > > 
> > > }
> > 
> > You explicitly tell here printf() to get singned int.
> 
> Ok, but it does not change things. Try the attached better example.

This does not help to see, if time_t is signed. On my system (int == 64-bit) 
the value is allways > 0.
BTW, here it is
        typedef long int __time_t;
        typedef __time_t time_t;

And the output of your program defines:
        time_t is unsigned

        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to