Add ffi prefix in varargs

This commit is contained in:
Joshua Suskalo 2021-09-25 09:30:05 -05:00
parent e02a60b331
commit ba7b5bc4aa

View file

@ -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"). provides `vacfn-factory` (for "varargs C function factory").
```clojure ```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 This returns a function of the types of the rest of the arguments which itself