This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boot -d com.github.jnr/jnr-ffi repl | |
=> (import jnr.ffi.LibraryLoader) | |
=> (definterface LibC (^int puts [^String s])) | |
=> (def libname (if (.contains (.toLowerCase (System/getProperty "os.name")) "windows") "msvcrt" "c")) | |
=> (def libc (.load (LibraryLoader/create LibC) libname)) |