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 16:28:43 EDT (-0400)
  Re: [beta] source distribution of POV-Ray 3.6 for UNIX  
From: Thierry Boudet
Date: 3 Jul 2004 16:32:29
Message: <40e717dd$1@news.povray.org>
Thorsten Froehlich wrote:
> 
> #include <stdlib.h>
> #include <stdio.h>
> int main(int ac, char **av)
> {
>     printf("Result: %d\n", system(av[1]));
>     return 0;
> }
> 
> This should work and demonstrate that the system works correctly and only

    Don't work. In you invoke a.out with no args, av[1] is NULL.
    nonsense code sometime give intended results...


Post a reply to this message

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