Sha256: 02c5dd9125a2fcc8264f226a32d80b70340567d9dfa2a0cfb1a9ddd1602888c5

Contents?: true

Size: 197 Bytes

Versions: 6717

Compression:

Stored size: 197 Bytes

Contents

require 'ffi'

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

6,717 entries across 6,713 versions & 38 rubygems

Version Path
mux_ruby-3.20.0 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello.rb
cybrid_api_bank_ruby-0.123.12 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_organization_ruby-0.123.12 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_id_ruby-0.123.12 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_bank_ruby-0.123.11 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_organization_ruby-0.123.11 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_id_ruby-0.123.11 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_id_ruby-0.123.10 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_bank_ruby-0.123.10 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_organization_ruby-0.123.10 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_organization_ruby-0.123.7 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_id_ruby-0.123.7 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_bank_ruby-0.123.7 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
ory-client-1.15.12 vendor/bundle/ruby/3.1.0/gems/ffi-1.17.0/samples/hello.rb
cybrid_api_bank_ruby-0.123.4 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_id_ruby-0.123.4 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_organization_ruby-0.123.4 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_bank_ruby-0.123.3 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_organization_ruby-0.123.3 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb
cybrid_api_id_ruby-0.123.3 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.0-x86_64-linux-gnu/samples/hello.rb