I'm writing a C app that has an embedded lua script in it. The Lua script takes input from STDIN. So when I'm running the script from the shell it's like thus:
lua myscript.lua < datafile*
How do I accomplish this from inside the C code?
Thank you.