C.string(value)
Creates a new C Value of type char *
. This function is a simplified wrapper around the Value constructor.
Return value
This function returns a ValueExample
local c = require 'c'
-- Defines a C Value of type "char *", initialized with the value 'Hello LuaRT'
local val = c.string('Hello LuaRT')
-- Prints the C Value
print(val)