Foreign Functions
The with-native-string macro can be used for efficient (i.e., non-consing) string conversion.
Example:
(def-foreign-call ff ((st (* :char))
:strings-convert nil)
(with-native-string (s "hello")
(ff s))
Previous slide
Next slide
Back to first slide
View graphic version