Sha256: a2c1e04cc24d42225957942c95c7f6ede6ffe78d06c7bb13c5d9fd1575f82005

Contents?: true

Size: 259 Bytes

Versions: 103

Compression:

Stored size: 259 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "sample_helper"))
module Foo
  extend FFI::Library
  ffi_lib FFI::Library::LIBC
  attach_function("cputs", "puts", [ :string ], :int)
end
Foo.cputs("Hello, World via libc puts using FFI on MRI ruby")

Version data entries

103 entries across 90 versions & 15 rubygems

Version Path
cloudsmith-api-0.44.4 vendor/bundle/ruby/2.3.0/gems/ffi-1.11.1/samples/hello.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/ffi-1.11.1/samples/hello.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/samples/hello.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.10.0/samples/hello.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/ffi-1.10.0/samples/hello.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/ffi-1.11.1/samples/hello.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/ffi-1.11.1/samples/hello.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/ffi-1.11.1/samples/hello.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.25/samples/hello.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/ffi-1.11.1/samples/hello.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/ffi-1.11.1/samples/hello.rb
ffi-1.11.1-x86-mingw32 samples/hello.rb
ffi-1.11.1-x64-mingw32 samples/hello.rb
ffi-1.11.1 samples/hello.rb
ffi-1.11.0-x86-mingw32 samples/hello.rb
ffi-1.11.0-x64-mingw32 samples/hello.rb
tdiary-5.0.13 vendor/bundle/gems/ffi-1.10.0/samples/hello.rb
approveapi-1.0.8 vendor/bundle/ruby/2.6.0/gems/ffi-1.10.0/samples/hello.rb
tdiary-5.0.12.1 vendor/bundle/gems/ffi-1.10.0/samples/hello.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/samples/hello.rb