Sha256: 79633ae5fcc5589642603b2b818134d909a6a259d326dd2e4470b846a52d70eb

Contents?: true

Size: 173 Bytes

Versions: 103

Compression:

Stored size: 173 Bytes

Contents

require 'rubygems'
require 'ffi'
module Foo
  extend FFI::Library
  ffi_lib FFI::Library::LIBC
  attach_function :getlogin, [ ], :string
end
puts "getlogin=#{Foo.getlogin}"

Version data entries

103 entries across 90 versions & 15 rubygems

Version Path
ffi-1.12.0-x86-mingw32 samples/getlogin.rb
ffi-1.12.0-x64-mingw32 samples/getlogin.rb
ffi-1.12.0 samples/getlogin.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/ffi-1.11.1/samples/getlogin.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/ffi-1.11.3/samples/getlogin.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/ffi-1.11.1/samples/getlogin.rb
ffi-1.11.3-x64-mingw32 samples/getlogin.rb
ffi-1.11.3-x86-mingw32 samples/getlogin.rb
ffi-1.11.3 samples/getlogin.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/ffi-1.11.1/samples/getlogin.rb
ffi-1.11.2-x86-mingw32 samples/getlogin.rb
ffi-1.11.2-x64-mingw32 samples/getlogin.rb
ffi-1.11.2 samples/getlogin.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/ffi-1.11.1/samples/getlogin.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/ffi-1.11.1/samples/getlogin.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/ffi-1.11.1/samples/getlogin.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/ffi-1.11.1/samples/getlogin.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/ffi-1.11.1/samples/getlogin.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/ffi-1.11.1/samples/getlogin.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/ffi-1.11.1/samples/getlogin.rb