import ctypes


def constructor(cfunc):
    """
    Make a C function a constructor.

    The C interface is defined to accept no parameters and return a void pointer. It is also wrapped as a staticmethod
    to allow usage in classes.

    :param cfunc: The plain C function as imported from the C library using ctypes.
    :return: A static method with appropriate C interface.
    """
    cfunc.argtypes = []
    cfunc.restype = ctypes.c_void_p
    return staticmethod(cfunc)