[plt-scheme] libc and the FFI
On 30-May-07, at 1:48 PM, Hans Oesterholt-Dijkema wrote:
> Does that work on windoze?
>
> --Hans
The reference doesn't mention an exception for windows, but my own
experience is only with Mac OS. I'd imagine it should work fine
though, barring any possible oddness with the given libc.
-Jim
>
> Jim Meier schreef:
>> You can load the "current" program symbol table with ffi by giving
>> #f as the library name:
>>
>> (define libc (ffi-lib #f))
>>
>> So to grab the abort() function, for example,
>>
>> (define abort (get-ffi-obj "abort" libc (_fun -> _void))
>>
>> On 30-May-07, at 1:31 PM, Hans Oesterholt-Dijkema wrote:
>>
>>> Dear All,
>>>
>>> If I need some function from libc, how can I
>>> load the right library with ffi-lib?