POV-Ray : Newsgroups : povray.off-topic : Random C craziness : Re: Random C craziness Server Time
7 Sep 2024 13:21:41 EDT (-0400)
  Re: Random C craziness  
From: John VanSickle
Date: 26 Jul 2008 15:47:39
Message: <488b7f5b$1@news.povray.org>
Warp wrote:
> Chris Cason <del### [at] deletethistoopovrayorg> wrote:
>> Of course, this being C, 'TRUE' could be a macro that expands to a function
>>  that returns a value and thus the loop need not be infinite.
> 
>   Actually there are other ways for the loop to end. For instance, the
> function being called could execute an exit() call.
> 
>   (Another less fancy way would be to return a null pointer from the
> function, in which case the program will end with a segmentation fault.)

Or return a pointer to the exit() function, which is the same as above.

Regards,
John


Post a reply to this message

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