+------------------------Fortran 2003 Draft Standard-------------------------+
Purpose
The BIND attribute declares that a Fortran variable or common block is interoperable with the C programming language.
Syntax
.-,---------------------------. V | >>-BIND--(--C--+-----------------------------+--)--+----+----+-variable_name-----------+-+->< '-,--NAME-- = --binding_label-' '-::-' '-/--common_block_name--/-' |
Rules
This attribute specifies that a Fortran variable or common block is interoperable with a C entity with external linkage. Refer to Interoperability of Variables and Interoperability of Common Blocks for details.
If the NAME= specifier appears in a BIND statement, then only one variable-name or / common-block-name / may appear.
If a BIND statement specifies a common block, then each variable of that common block must be of interoperable type and type parameters, and must not have the POINTER or ALLOCATABLE attribute.
Related Information
+---------------------End of Fortran 2003 Draft Standard---------------------+