Why do you need a C API function? You have to include "lua.h" in your C source anyway, and this file defines things like LUA_VERSION, LUA_RELEASE, ... No need to introduce a function for this. - Michael