C.NULL readonly



The C.NULL property returns a new NULL pointer.

Example

local c = require "c" -- Creates a new NULL C Pointer local null_ptr = c.Pointer() -- Compares the the memory pointed by the pointers -- should print "true" print(null_ptr == c.NULL)