Sha256: 8a12416ef00f489e5c01b76d353e900a193c686ccf7cbbf8a3c5cde0b7c4de39
Contents?: true
Size: 403 Bytes
Versions: 2
Compression:
Stored size: 403 Bytes
Contents
require 'rubygems' require 'ffi' module LibC extend FFI::Library class Timeval < FFI::Struct layout( :tv_sec, :ulong, :tv_usec, :ulong ) end attach_function :strlen, [ :string ], :uint attach_function :strcat, [ :string, :string ], :string attach_function :strcmp, [ :string, :string ], :int attach_function :gettimeofday, [ :pointer, :pointer ], :int end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-swig-generator-0.3.2 | examples/generated/libc_wrap.rb |
ffi-swig-generator-0.3.0 | examples/generated/libc_wrap.rb |