Library(3pm) User Contributed Perl Documentation Library(3pm)
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.
STATUS
This is a maintenance release. We will be releasing an updated but incompatible 2.00
version shortly.
AUTHOR
Paul Moore, "<gustav AT morpheus.uk>" is the original author of FFI.
Mitchell Charity "<mcharity AT vendian.org>" contributed fixes.
Anatoly Vorobey "<avorobey AT pobox.com>" and Gaal Yahas "<gaal AT forum2.org>" are the current
maintainers.
SEE ALSO
The FFI module.
perl v5.10.0 2008-09-06 Library(3pm)
Generated by $Id: phpMan.php,v 4.49 2006/02/26 13:18:18 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2012-05-24 15:17 @38.107.179.239 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html)