Ensure that the correct return type is used for strlen in the readme
This commit is contained in:
parent
14ee7a1ee8
commit
e060046e81
1 changed files with 1 additions and 1 deletions
|
|
@ -461,7 +461,7 @@ The functions `make-downcall` and `make-varargs-factory` are provided to create
|
||||||
these raw handles.
|
these raw handles.
|
||||||
|
|
||||||
```clojure
|
```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))
|
(raw-strlen (ffi/serialize "hello" ::ffi/c-string))
|
||||||
;; => 5
|
;; => 5
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue