# FFI - Foreign Function Interface - man(3) - [phpMan]


## NAME
       FFI — Foreign Function Interface

## LIBRARY
       libffi, -lffi

## SYNOPSIS
### #include <ffi.h>

       _ffi_status_
       **ffi_prep_cif**(_ffi_cif_ _*cif_,       _ffi_abi_ _abi_,       _unsigned_ _int_ _nargs_,      _ffi_type_ _*rtype_,
           _ffi_type_ _**atypes_);

       _void_
       **ffi_prep_cif_var**(_ffi_cif_ _*cif_, _ffi_abi_ _abi_, _unsigned_ _int_ _nfixedargs_, _unsigned_ _int_ _ntotalargs_,
           _ffi_type_ _*rtype_, _ffi_type_ _**atypes_);

       _void_
       **ffi_call**(_ffi_cif_ _*cif_, _void_ _(*fn)(void)_, _void_ _*rvalue_, _void_ _**avalue_);

## DESCRIPTION
       The foreign function interface provides a mechanism by which a function can generate  a  call
       to another function at runtime without requiring knowledge of the called function's interface
       at compile time.

## SEE ALSO
       [_ffi_prep_cif_(3)](https://www.chedong.com/phpMan.php/man/ffiprepcif/3/markdown), [_ffi_prep_cif_var_(3)](https://www.chedong.com/phpMan.php/man/ffiprepcifvar/3/markdown), [_ffi_call_(3)](https://www.chedong.com/phpMan.php/man/fficall/3/markdown)

                                          February 15, 2008                                   [_FFI_(3)](https://www.chedong.com/phpMan.php/man/FFI/3/markdown)
