Skip to main content
Module

x/denops_std/function/mod.ts>libcallnr

📚 Standard module for denops.vim
Go to Latest
function libcallnr
import { libcallnr } from "https://deno.land/x/denops_std@v4.1.2/function/mod.ts";

Just like |libcall()|, but used for a function that returns an int instead of a string. {only in Win32 on some Unix versions, when the |+libcall| feature is present} Examples: :echo libcallnr("/usr/lib/libc.so", "getpid", "") :call libcallnr("libc.so", "printf", "Hello World!\n") :call libcallnr("libc.so", "sleep", 10) Can also be used as a |method|, the base is passed as the third argument: GetValue()->libcallnr("libc.so", "printf")

Parameters

denops: Denops
libname: unknown
funcname: unknown
argument: unknown

Returns

Promise<unknown>