POV-Ray : Newsgroups : povray.advanced-users : #write(outfile,chr(0)) doesn't work. A bug? : Re: #write(outfile,chr(0)) doesn't work. A bug? Server Time
2 Nov 2024 11:23:23 EDT (-0400)
  Re: #write(outfile,chr(0)) doesn't work. A bug?  
From: Ron Parker
Date: 20 Oct 1999 12:14:56
Message: <slrn80rpmk.v8.parkerr@ron.gwmicro.com>
On 20 Oct 1999 10:49:11 -0400, Nieminen Juha wrote:
>  I was trying to make a pov script which could create its own .df3 file.
>However, this seems to be impossible since for some reason povray refuses
>to write the value 0 to the file. Every other value (1-255) can be written
>but not 0.
>  What's going on here? Is it a bug or an intentional feature?

Sounds like a bug to me.  I'd wager that #write uses fprintf, which will
terminate when it sees the zero.


Post a reply to this message

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