English     Español
[Main Index] : Programming : Languages : Perl : CPAN Modules : Language Interfaces : FFI
 FFI::Library CPAN (Perl) Module 

Search

 

Documents

FFI::Library - Perl Access to Dynamically Loaded Libraries (Displayed)

FFI::Library - Perl Access to Dynamically Loaded Libraries


NAME

FFI::Library - Perl Access to Dynamically Loaded Libraries


SYNOPSIS

    use FFI::Library;
    $lib = FFI::Library->new("mylib");
    $fn = $lib->function("fn", "signature");
    $ret = $fn->(...);


DESCRIPTION

This module provides access from Perl to functions exported from dynamically linked libraries. Functions are described by signatures, for details of which see the FFI module's documentation.


EXAMPLES

    $clib_file = ($^O eq "MSWin32") ? "MSVCRT40.DLL" : "-lc";
    $clib = FFI::Library->new($clib_file);
    $strlen = $clib->function("strlen", "cIp");
    $n = $strlen->($my_string);


TODO


LICENSE

This module can be distributed under the same terms as Perl. However, as it depends on the FFI module, please note the licensing terms for the FFI code.


AUTHOR

Paul Moore, gustav@morpheus.demon.co.uk


SEE ALSO

The FFI module.

Information

This site is currently in testing, it is not yet operating using the full database. Until it is officially launched you may wish to visit Help-Site Computer Manuals. After launch, this site (HelpSpy) will replace Help-Site. Information about the spider which is currently trawling the Internet looking for links to add to this directory can be found here.
   

©Copyright Nicholas Reynolds 2004