Sha256: e4933c052bc7cfd02d6ef4159eb361a78bf651cee63e66a56c8847be2a9f035f
Contents?: true
Size: 230 Bytes
Versions: 3
Compression:
Stored size: 230 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "sample_helper")) module Foo extend FFI::Library attach_function("cputs", "puts", [ :string ], :int) end Foo.cputs("Hello, World via libc puts using FFI on MRI ruby")
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffi-0.3.1 | samples/hello.rb |
ffi-0.3.0 | samples/hello.rb |
ffi-0.3.2 | samples/hello.rb |