Int f() { return ...; }: What do I pass to ccall?

Uf, finally chanced on the right incantation:

function f()
        return ccall(dlsym(_LIB, :f),
        Cint,
        (),)
    end
1 Like