Sha256: ffa25a810dede511b55d11ab3144a4baaeb288fc85e8aeab364fdd750c1361c0

Contents?: true

Size: 400 Bytes

Versions: 9

Compression:

Stored size: 400 Bytes

Contents

%module libc

%{
require 'rubygems'
require 'ffi'

module LibC
  extend FFI::Library
%}

typedef unsigned int size_t;

struct timeval {
  unsigned long tv_sec;
  unsigned long tv_usec;
};

size_t strlen (const char *s);
char * strcat (char *restrict to, const char *restrict from);
int strcmp (const char *s1, const char *s2);

int gettimeofday (struct timeval *tp, struct timezone *tzp);

%{
end
%}

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
remogatto-ffi-generator-0.1.0 examples/interfaces/libc.i
remogatto-ffi-generator-0.2.0 examples/interfaces/libc.i
remogatto-ffi-swig-generator-0.1.0 examples/interfaces/libc.i
remogatto-ffi-swig-generator-0.2.0 examples/interfaces/libc.i
remogatto-ffi-swig-generator-0.2.1 examples/interfaces/libc.i
ffi-swig-generator-0.3.2 examples/interfaces/libc.i
ffi-swig-generator-0.2.1 examples/interfaces/libc.i
ffi-swig-generator-0.3.1 examples/interfaces/libc.i
ffi-swig-generator-0.3.0 examples/interfaces/libc.i