Manual Pages for UNIX Darwin command on man ffi_prep_cif
MyWebUniversity

Manual Pages for UNIX Darwin command on man ffi_prep_cif

ffiprepcif(3) BSD Library Functions Manual ffiprepcif(3)

NAME

ffffiipprreeppcciiff - Prepare a ffffiicciiff structure for use with ffffiiccaallll or

ffffiipprreeppcclloossuurree.

SYNOPSIS

##iinncclluuddee <>

ffistatus ffffiipprreeppcciiff(fficif *cif, ffiabi abi, unsigned int nargs, ffitype *rtype, ffitype **atypes);

DESCRIPTION

The ffffiipprreeppcciiff function prepares a ffffiicciiff structure for use with ffffiiccaallll or ffffiipprreeppcclloossuurree. abi specifies a set of calling conventions to use. atypes is an array of nargs pointers to ffffiittyyppee structs that describe the data type, size and alignment of each argument. rtype points to an ffffiittyyppee that describes the data type, size and alignment of the return value.

RETURN VALUES

Upon successful completion, ffffiipprreeppcciiff returns FFFFIIOOKK. It will return FFFFIIBBAADDTTYYPPEEDDEEFF if cif is NNUULLLL or atypes or rtype is malformed. If abi does not refer to a valid ABI, FFFFIIBBAADDAABBII will be returned. Available

ABIs are defined in <> and <>.

SEE ALSO

ffi(3), fficall(3), ffiprepclosure(3) Darwin July 20, 2007 Darwin




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™