POV-Ray : Newsgroups : povray.off-topic : Random C craziness : Re: Random C craziness Server Time
7 Sep 2024 11:22:20 EDT (-0400)
  Re: Random C craziness  
From: Warp
Date: 29 Jul 2008 17:05:51
Message: <488f862f@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> Warp wrote:
> >   (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.)

> Well, maybe if you're lucky. :-) Otherwise, it just goes off happily 
> executing whatever is at memory address zero (or whatever NULL maps to).

  I'm pretty sure POSIX or some other type of standard states that jumping
to the null pointer will always cause a segmentation fault.

-- 
                                                          - Warp


Post a reply to this message

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