Sha256: 4c7afc6a9e1621498d8c0105504aef8bc332cdaf5576fb1f6dc8d6aad97bbdcd

Contents?: true

Size: 146 Bytes

Versions: 7062

Compression:

Stored size: 146 Bytes

Contents

require 'ffi'

module Foo
  extend FFI::Library
  ffi_lib FFI::Library::LIBC
  attach_function :getpid, [ ], :int
end
puts "My pid=#{Foo.getpid}"

Version data entries

7,062 entries across 7,056 versions & 41 rubygems

Version Path
ffi-1.13.0-x64-mingw32 samples/getpid.rb
ffi-1.13.0 samples/getpid.rb