Sha256: 45c931c10035d70f2b675f14702a6da0b7e19b93bcb33b95254674994b6d752a

Contents?: true

Size: 186 Bytes

Versions: 3

Compression:

Stored size: 186 Bytes

Contents

require 'rubygems'
require 'ffi'
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.1.1 samples/hello.rb
ffi-0.1.0 samples/hello.rb
ffi-0.2.0 samples/hello.rb