Ensure that the correct return type is used for strlen in the readme

This commit is contained in:
Joshua Suskalo 2021-09-25 13:40:27 -05:00
parent 14ee7a1ee8
commit e060046e81

View file

@ -461,7 +461,7 @@ The functions `make-downcall` and `make-varargs-factory` are provided to create
these raw handles.
```clojure
(def raw-strlen (ffi/make-downcall "strlen" [::ffi/c-string] ::ffi/int))
(def raw-strlen (ffi/make-downcall "strlen" [::ffi/c-string] ::ffi/long))
(raw-strlen (ffi/serialize "hello" ::ffi/c-string))
;; => 5
```