Sha256: 02c5dd9125a2fcc8264f226a32d80b70340567d9dfa2a0cfb1a9ddd1602888c5

Contents?: true

Size: 197 Bytes

Versions: 7123

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

7,123 entries across 7,117 versions & 41 rubygems

Version Path
ory-kratos-client-0.7.6.alpha4 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-kratos-client-0.7.6.alpha3 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-kratos-client-0.7.6.alpha1 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-kratos-client-0.7.5.alpha2 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ffi-1.15.4 samples/hello.rb
ffi-1.15.4-java samples/hello.rb
ffi-1.15.4-x64-mingw32 samples/hello.rb
ffi-1.15.4-x86-mingw32 samples/hello.rb
ffi-1.15.4.pre1-java samples/hello.rb
ffi-1.15.4.pre1 samples/hello.rb
ffi-1.15.3 samples/hello.rb
ffi-1.15.3-java samples/hello.rb
ffi-1.15.3-x64-mingw32 samples/hello.rb
ffi-1.15.3-x86-mingw32 samples/hello.rb
ffi-1.15.2 samples/hello.rb
ffi-1.15.2-java samples/hello.rb
ffi-1.15.2-x64-mingw32 samples/hello.rb
ffi-1.15.2-x86-mingw32 samples/hello.rb
ffi-1.15.1 samples/hello.rb
ffi-1.15.1-java samples/hello.rb