POV-Ray : Newsgroups : povray.unix : [beta] source distribution of POV-Ray 3.6 for UNIX : Re: [beta] source distribution of POV-Ray 3.6 for UNIX Server Time
8 Jul 2024 15:42:27 EDT (-0400)
  Re: [beta] source distribution of POV-Ray 3.6 for UNIX  
From: Thorsten Froehlich
Date: 4 Jul 2004 03:22:11
Message: <40e7b023@news.povray.org>
In article <40e71339@news.povray.org> , Wolfgang Wieser <wwi### [at] gmxde>  
wrote:

> Maybe you could even tell us where you found this information.

Section 5.1.2.2.3 of the ISO C 1999 standard - this is the section
specifying that main returns an "int" to the host environment.  It also
explicitly states that if and only if the result is _not_ an "int" the
behavior is implementation defined.  It does not make any provisions for
range reductions performed by the host environment.

Of course, this does not answer a more relevant _rhetoric_ question: Why is
there a need to butcher the program result on some systems in the first
place!  A simple C "int" certainly does not require extraordinary amounts of
memory...

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.