[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: alien: global variables in C
- From: Martin <wtxnh-lua@...>
- Date: Tue, 7 Jul 2009 17:06:04 +0200
How do I use global variables with alien?
I have some global variables in my C library: how do I read or set the
value from lua? In my C program I have:
This is only for reading - and it is enough for now.
Or similarly how do I get stdout to use it with fprintf function?
For now I have created function
but this only possible if I am interfacing my own c-library.
Is there a way to get hold of stdout without writing my own c-library?