On Sun, Sep 12, 2010 at 9:50 PM, Michael D Godfrey
<address@hidden> wrote:
On 09/12/2010 11:22 AM, Shai Ayal wrote:
I do still recommend clearing the fid after fclose. This
would have caused my fclose
to fail and would have resolved the question of whether it
was needed.
I don't know how to do that -- I use a local copy of the fid,
and I see no way to change the value of fid in the calling
function.
Shai
Oh. I misunderstood. I
thought that Ben's code was passing you the fid.
I thought that because his code reads:
fid = fopen ("test.eps", "wb");
drawnow ("eps", sprintf ("%d", fid));
What happens to the fid in
the drawnow call?
The fid is passed by value -- it's even passed by it's string value!. The place where I use fclose, in glp-renderer::draw only has the value of fid.