[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to get FILE* from openfile() handle
- From: "Mauro Vezzosi"<mvezzosi@...>
- Date: Mon, 11 Sep 2000 14:55:05 +0200
> > I tried (FILE *) lua_getuserdata(lua_getparam(1)) to get the
> > FILE* but it doesn't work.
> That should work... the userdata is the (FILE*) pointer.
Yes, sorry, you're right and my function was wrong.
>From Roberto's email:
> (BTW, did you check the result of openfile?)
I checked it only after Erik answer because liolib.c confuse me and I
supposed that my function was right (the last minute changes make it