From ba7b5bc4aa1c942387bec6b5d27926792239f499 Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Sat, 25 Sep 2021 09:30:05 -0500 Subject: [PATCH] Add ffi prefix in varargs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c5f308..cf360cf 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ Some native functions can take any number of arguments, and in these cases coffi provides `vacfn-factory` (for "varargs C function factory"). ```clojure -(def printf-factory (vacfn-factory "printf" [::ffi/c-string] ::ffi/int)) +(def printf-factory (ffi/vacfn-factory "printf" [::ffi/c-string] ::ffi/int)) ``` This returns a function of the types of the rest of the arguments which itself