Sha256: 45637110804d68b31e0b2f3345e71657a575fe91b8a3849c7f99c5018f44b1a7

Contents?: true

Size: 155 Bytes

Versions: 7013

Compression:

Stored size: 155 Bytes

Contents

require 'ffi'

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

Version data entries

7,013 entries across 7,009 versions & 39 rubygems

Version Path
cloudsmith-api-0.51.93 vendor/bundle/ruby/2.3.0/gems/ffi-1.13.1/samples/getlogin.rb
cloudsmith-api-0.51.38 vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/samples/getlogin.rb
cloudsmith-api-0.51.37 vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/samples/getlogin.rb
cloudsmith-api-0.51.34 vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/samples/getlogin.rb
ffi-1.13.1-java samples/getlogin.rb
ffi-1.13.1-x86-mingw32 samples/getlogin.rb
ffi-1.13.1-x64-mingw32 samples/getlogin.rb
ffi-1.13.1 samples/getlogin.rb
cloudsmith-api-0.51.22 vendor/bundle/ruby/2.6.0/gems/ffi-1.13.0/samples/getlogin.rb
ffi-1.13.0-java samples/getlogin.rb
ffi-1.13.0-x86-mingw32 samples/getlogin.rb
ffi-1.13.0-x64-mingw32 samples/getlogin.rb
ffi-1.13.0 samples/getlogin.rb