From e060046e814f1a8585a7be9cc92745a69eb7da4c Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Sat, 25 Sep 2021 13:40:27 -0500 Subject: [PATCH] Ensure that the correct return type is used for strlen in the readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b883967..8d55fea 100644 --- a/README.md +++ b/README.md @@ -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 ```