This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
require 'ffi'
|
||||
|
||||
module Foo
|
||||
extend FFI::Library
|
||||
ffi_lib FFI::Library::LIBC
|
||||
attach_function :getlogin, [ ], :string
|
||||
end
|
||||
puts "getlogin=#{Foo.getlogin}"
|
||||
Reference in New Issue
Block a user